diff --git a/index.d.ts b/index.d.ts index 93237cf..a5bd5c8 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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
); + key: keyof Export | ((module: Export) => ComponentType
); /** * Allows you to specify a maximum amount of time before the error component