@types/react 16.9.50 → 16.9.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- react/README.md +1 -1
- react/index.d.ts +2 -2
- react/package.json +2 -2
react/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for React (http://facebook.github.io/reac
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Mon, 05 Oct 2020 18:02:24 GMT
|
12
12
|
* Dependencies: [@types/csstype](https://npmjs.com/package/@types/csstype), [@types/prop-types](https://npmjs.com/package/@types/prop-types)
|
13
13
|
* Global values: `React`
|
14
14
|
|
react/index.d.ts
CHANGED
@@ -915,7 +915,7 @@ declare namespace React {
|
|
915
915
|
* @see https://reactjs.org/docs/hooks-reference.html#usestate
|
916
916
|
*/
|
917
917
|
function useState<S>(initialState: S | (() => S)): [S, Dispatch<SetStateAction<S>>];
|
918
|
-
// convenience overload when first argument is
|
918
|
+
// convenience overload when first argument is omitted
|
919
919
|
/**
|
920
920
|
* Returns a stateful value, and a function to update it.
|
921
921
|
*
|
@@ -966,7 +966,7 @@ declare namespace React {
|
|
966
966
|
* @see https://reactjs.org/docs/hooks-reference.html#usereducer
|
967
967
|
*/
|
968
968
|
// overload where "I" may be a subset of ReducerState<R>; used to provide autocompletion.
|
969
|
-
// If "I" matches ReducerState<R> exactly then the last overload will allow initializer to be
|
969
|
+
// If "I" matches ReducerState<R> exactly then the last overload will allow initializer to be omitted.
|
970
970
|
// the last overload effectively behaves as if the identity function (x => x) is the initializer.
|
971
971
|
function useReducer<R extends Reducer<any, any>, I>(
|
972
972
|
reducer: R,
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "16.9.
|
3
|
+
"version": "16.9.51",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"license": "MIT",
|
6
6
|
"contributors": [
|
@@ -144,6 +144,6 @@
|
|
144
144
|
"@types/prop-types": "*",
|
145
145
|
"csstype": "^3.0.2"
|
146
146
|
},
|
147
|
-
"typesPublisherContentHash": "
|
147
|
+
"typesPublisherContentHash": "e6d1e8790b01a3fa2da65495350765d8a8d615619c5b759fee32719b160b6d2e",
|
148
148
|
"typeScriptVersion": "3.2"
|
149
149
|
}
|