Update react.d.ts for Typescript 1.4

This commit is contained in:
Vincent Siao
2015-01-21 15:51:16 -08:00
parent 24ce5cba42
commit 8194252213
2 changed files with 56 additions and 57 deletions
+1 -3
View File
@@ -193,9 +193,7 @@ var childMap: { [key: string]: number } =
React.Children.map<number>(children, (child) => { return 42; });
React.Children.forEach(children, (child) => {});
var nChildren: number = React.Children.count(children);
var onlyChild = React.Children.only([null, [[["Hallo"], true]], false, {
test: null
}]);
var onlyChild = React.Children.only([null, [[["Hallo"], true]], false]);
//
// Example from http://facebook.github.io/react/