Add type annotation to avoid complaining about missing index signature in 'react'.

This commit is contained in:
Daniel Rosenwasser
2015-08-20 16:52:54 -07:00
parent fb0b124b2a
commit d333e3deb0

View File

@@ -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')"
};