From c81989770f1bed1ce67a8907b8d1faff46d74cf4 Mon Sep 17 00:00:00 2001 From: Donald Pipowitch Date: Thu, 28 Jul 2016 07:40:38 +0200 Subject: [PATCH] Update index.d.ts Support strict null checks in TypeScript 2.0. --- react/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react/index.d.ts b/react/index.d.ts index d9e601095a..6db2073064 100644 --- a/react/index.d.ts +++ b/react/index.d.ts @@ -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 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; } } -} \ No newline at end of file +}