mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
Add type annotation to avoid complaining about missing index signature in 'react'.
This commit is contained in:
1 parent
fb0b124b2a
commit
d333e3deb0
1 file changed
+1
-1
@@ -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')"
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user