// Type definitions for single-spa-react 2.8 // Project: https://github.com/CanopyTax/single-spa-react, https://github.com/joeldenning/single-spa-react // Definitions by: Garrett Smith // Chris Dopuch // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 import * as React from "react"; import * as ReactDOM from "react-dom"; export = SingleSpaReact; declare function SingleSpaReact( opts: SingleSpaReact.Options ): SingleSpaReact.Lifecycles; declare namespace SingleSpaReact { interface Options { React: typeof React; ReactDOM: typeof ReactDOM; rootComponent?: React.ComponentClass; loadRootComponent?: () => Promise>; domElementGetter?: () => Element; suppressComponentDidCatchWarning?: boolean; parcelCanUpdate?: boolean; } interface Lifecycles { bootstrap: (props: any) => Promise; mount: (props: any) => Promise; unmount: (props: any) => Promise; } }