Skip to content

Commit d6ee9d2

Browse files
authored
Merge pull request #85 from forabi/patch-4
Another improvement to TS type checking
2 parents 4c3ce1d + 85139ab commit d6ee9d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ declare module 'react-universal-component' {
7373
* It can be a string corresponding to the export key, or a function that's
7474
* passed the entire module and returns the export that will become the component.
7575
*/
76-
key: string | ((module: Export) => ComponentType<P>);
76+
key: keyof Export | ((module: Export) => ComponentType<P>);
7777

7878
/**
7979
* Allows you to specify a maximum amount of time before the error component

0 commit comments

Comments
 (0)