Skip to content

Conversation

mattrothenberg
Copy link

@mattrothenberg mattrothenberg commented May 11, 2020

@jossmac

Description of changes:
Fixes a typo in the Using The Modal code example.

As per https://github.com/jossmac/react-images/blob/master/index.d.ts#L45, src is not a valid key for ViewType.

Type '{ src: string; }[]' is not assignable to type 'ViewType[]'.
  Property 'source' is missing in type '{ src: string; }' but required in type 'ViewType'.ts(2322)

Checks:

  • Please confirm yarn run lint ran successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant