Skip to content

Commit a3d1898

Browse files
OliverJAshScriptedAlchemy
authored andcommitted
fix: TypeScript: add render option to types (#183)
1 parent 3c21ffa commit a3d1898

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

index.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,13 @@ declare module 'react-universal-component' {
189189
error:
190190
| ((p: P) => JSX.Element | ComponentType<P & { error: Error }>)
191191
| (JSX.Element | ComponentType<P & { error: Error }>);
192+
193+
render: (
194+
props: P,
195+
module: Export | undefined,
196+
isLoading: boolean,
197+
error: Error | undefined
198+
) => JSX.Element
192199
}
193200
>;
194201

0 commit comments

Comments
 (0)