diff --git a/types/single-spa-react/single-spa-react-tests.tsx b/types/single-spa-react/single-spa-react-tests.tsx index 53c8a81e77..1b42050146 100644 --- a/types/single-spa-react/single-spa-react-tests.tsx +++ b/types/single-spa-react/single-spa-react-tests.tsx @@ -1,8 +1,11 @@ import singleSpaReact = require("single-spa-react"); +import { Lifecycles } from "single-spa-react"; import * as React from "react"; import * as ReactDOM from "react-dom"; -type customProps = { name: string }; +interface customProps { + name: string; +} const rootComponent: React.SFC = (props: customProps) => { return
hello{props.name} !
; diff --git a/types/single-spa-react/tsconfig.json b/types/single-spa-react/tsconfig.json index 4bf3b7e965..a2b1f12071 100644 --- a/types/single-spa-react/tsconfig.json +++ b/types/single-spa-react/tsconfig.json @@ -8,6 +8,7 @@ "strictFunctionTypes": true, "strictNullChecks": true, "baseUrl": "../", + "typeRoots": ["../"], "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true