From d333e3deb09c5aea1063c45d80ccaeba48bcb93b Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Thu, 20 Aug 2015 16:52:54 -0700 Subject: [PATCH] Add type annotation to avoid complaining about missing index signature in 'react'. --- react/react-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/react-tests.ts b/react/react-tests.ts index fbd1cb516..6540cc9f3 100644 --- a/react/react-tests.ts +++ b/react/react-tests.ts @@ -204,7 +204,7 @@ myComponent.reset(); // -------------------------------------------------------------------------- var children: any[] = ["Hello world", [null], React.DOM.span(null)]; -var divStyle = { // CSSProperties +var divStyle: React.CSSProperties = { // CSSProperties flex: "1 1 main-size", backgroundImage: "url('hello.png')" };