Skip to content

Commit

Permalink
Merge pull request #85 from forabi/patch-4
Browse files Browse the repository at this point in the history
Another improvement to TS type checking
  • Loading branch information
faceyspacey authored Dec 3, 2017
2 parents 4c3ce1d + 85139ab commit d6ee9d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ declare module 'react-universal-component' {
* It can be a string corresponding to the export key, or a function that's
* passed the entire module and returns the export that will become the component.
*/
key: string | ((module: Export) => ComponentType<P>);
key: keyof Export | ((module: Export) => ComponentType<P>);

/**
* Allows you to specify a maximum amount of time before the error component
Expand Down

0 comments on commit d6ee9d2

Please sign in to comment.