Skip to content

Commit

Permalink
Fix loadRootComponent typing
Browse files Browse the repository at this point in the history
  • Loading branch information
filoxo committed Aug 24, 2022
1 parent 8f28381 commit 7ac219f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion types/single-spa-react.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export interface SingleSpaReactOpts<RootComponentProps> {
rootComponent?:
| React.ComponentClass<RootComponentProps, any>
| React.FunctionComponent<RootComponentProps>;
loadRootComponent?: (props?: any) => Promise<React.ElementType<any>>;
loadRootComponent?: (
props?: RootComponentProps
) => Promise<React.ElementType<typeof props>>;
errorBoundary?: (
err: Error,
errInfo: React.ErrorInfo,
Expand Down

0 comments on commit 7ac219f

Please sign in to comment.