From 3d6cddd5c3e28730c8eb526c29eb9142f3b85199 Mon Sep 17 00:00:00 2001 From: Chris Dopuch Date: Sun, 20 Jan 2019 18:49:14 -0800 Subject: [PATCH] fix tsconfig, reimport in test --- types/single-spa-react/single-spa-react-tests.tsx | 5 ++++- types/single-spa-react/tsconfig.json | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) 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