mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
Update index.d.ts
Support strict null checks in TypeScript 2.0.
This commit is contained in:
4
react/index.d.ts
vendored
4
react/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user