Beej126 / single-spa-systemjs-cra2.1-ts-no-eject

single-spa sample with CRA2.1, Typescript and webpack AMD module for SystemJS WITHOUT EJECTING
MIT License
16 stars 3 forks source link

Argument of type 'Promise<any>' is not assignable to parameter of type 'LifeCycles<{}> | #4

Closed openainext closed 4 years ago

openainext commented 4 years ago

single-spa-systemjs-cra2.1-ts-no-eject-master/main/src/index.tsx Type error: Argument of type 'Promise' is not assignable to parameter of type 'LifeCycles<{}> | ((config: AppProps) => Promise<LifeCycles<{}> | Splat<LifeCycles<{}>>>)'. Type 'Promise' is not assignable to type '(config: AppProps) => Promise<LifeCycles<{}> | Splat<LifeCycles<{}>>>'. Type 'Promise' provides no match for the signature '(config: AppProps): Promise<LifeCycles<{}> | Splat<LifeCycles<{}>>>'. TS2345