Update index.d.ts

Support strict null checks in TypeScript 2.0.
This commit is contained in:
Donald Pipowitch
2016-07-28 07:40:38 +02:00
committed by GitHub
parent 4be5f808af
commit c81989770f

4
react/index.d.ts vendored
View File

@@ -166,7 +166,7 @@ declare namespace React {
setState(f: (prevState: S, props: P) => S, callback?: () => any): void;
setState(state: S, callback?: () => any): void;
forceUpdate(callBack?: () => any): void;
render(): JSX.Element;
render(): JSX.Element | null;
// React.Props<T> is now deprecated, which means that the `children`
// property is not available on `P` by default, even though you can
@@ -2467,4 +2467,4 @@ declare global {
use: React.SVGProps;
}
}
}
}