From 7ac219fd2e181bcf96e914cd81f18a5839279258 Mon Sep 17 00:00:00 2001 From: Carlos Filoteo Date: Wed, 24 Aug 2022 10:19:50 -0600 Subject: [PATCH] Fix loadRootComponent typing --- types/single-spa-react.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/single-spa-react.d.ts b/types/single-spa-react.d.ts index 0eeeb1a..d066060 100644 --- a/types/single-spa-react.d.ts +++ b/types/single-spa-react.d.ts @@ -25,7 +25,9 @@ export interface SingleSpaReactOpts { rootComponent?: | React.ComponentClass | React.FunctionComponent; - loadRootComponent?: (props?: any) => Promise>; + loadRootComponent?: ( + props?: RootComponentProps + ) => Promise>; errorBoundary?: ( err: Error, errInfo: React.ErrorInfo,