@types/react 16.7.22 → 16.8.0
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 +2 -2
- react/index.d.ts +7 -6
- react/package.json +9 -4
react/README.md
CHANGED
@@ -8,9 +8,9 @@ This package contains type definitions for React ( http://facebook.github.io/rea
|
|
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: Thu, 31 Jan 2019 16:41:25 GMT
|
12
12
|
* Dependencies: @types/csstype, @types/prop-types
|
13
13
|
* Global values: React
|
14
14
|
|
15
15
|
# Credits
|
16
|
-
These definitions were written by Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>, John Reilly <https://github.com/johnnyreilly>, Benoit Benezech <https://github.com/bbenezech>, Patricio Zavolinsky <https://github.com/pzavolinsky>, Digiguru <https://github.com/digiguru>, Eric Anderson <https://github.com/ericanderson>, Tanguy Krotoff <https://github.com/tkrotoff>, Dovydas Navickas <https://github.com/DovydasNavickas>, Stéphane Goetz <https://github.com/onigoetz>, Josh Rutherford <https://github.com/theruther4d>, Guilherme Hübner <https://github.com/guilhermehubner>, Ferdy Budhidharma <https://github.com/ferdaber>, Johann Rakotoharisoa <https://github.com/jrakotoharisoa>, Olivier Pascal <https://github.com/pascaloliv>, Martin Hochel <https://github.com/hotell>, Frank Li <https://github.com/franklixuefei>, Jessica Franco <https://github.com/
|
16
|
+
These definitions were written by Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>, John Reilly <https://github.com/johnnyreilly>, Benoit Benezech <https://github.com/bbenezech>, Patricio Zavolinsky <https://github.com/pzavolinsky>, Digiguru <https://github.com/digiguru>, Eric Anderson <https://github.com/ericanderson>, Tanguy Krotoff <https://github.com/tkrotoff>, Dovydas Navickas <https://github.com/DovydasNavickas>, Stéphane Goetz <https://github.com/onigoetz>, Josh Rutherford <https://github.com/theruther4d>, Guilherme Hübner <https://github.com/guilhermehubner>, Ferdy Budhidharma <https://github.com/ferdaber>, Johann Rakotoharisoa <https://github.com/jrakotoharisoa>, Olivier Pascal <https://github.com/pascaloliv>, Martin Hochel <https://github.com/hotell>, Frank Li <https://github.com/franklixuefei>, Jessica Franco <https://github.com/Jessidhia>, Paul Sherman <https://github.com/pshrmn>, Sunil Pai <https://github.com/threepointone>.
|
react/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// Type definitions for React 16.
|
1
|
+
// Type definitions for React 16.8
|
2
2
|
// Project: http://facebook.github.io/react/
|
3
3
|
// Definitions by: Asana <https://asana.com>
|
4
4
|
// AssureSign <http://www.assuresign.com>
|
@@ -18,8 +18,9 @@
|
|
18
18
|
// Olivier Pascal <https://github.com/pascaloliv>
|
19
19
|
// Martin Hochel <https://github.com/hotell>
|
20
20
|
// Frank Li <https://github.com/franklixuefei>
|
21
|
-
// Jessica Franco <https://github.com/
|
21
|
+
// Jessica Franco <https://github.com/Jessidhia>
|
22
22
|
// Paul Sherman <https://github.com/pshrmn>
|
23
|
+
// Sunil Pai <https://github.com/threepointone>
|
23
24
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
24
25
|
// TypeScript Version: 2.8
|
25
26
|
|
@@ -869,15 +870,15 @@ declare namespace React {
|
|
869
870
|
function useEffect(effect: EffectCallback, inputs?: InputIdentityList): void;
|
870
871
|
// NOTE: this does not accept strings, but this will have to be fixed by removing strings from type Ref<T>
|
871
872
|
/**
|
872
|
-
* `
|
873
|
+
* `useImperativeHandle` customizes the instance value that is exposed to parent components when using
|
873
874
|
* `ref`. As always, imperative code using refs should be avoided in most cases.
|
874
875
|
*
|
875
|
-
* `
|
876
|
+
* `useImperativeHandle` should be used with `React.forwardRef`.
|
876
877
|
*
|
877
878
|
* @version experimental
|
878
|
-
* @see https://reactjs.org/docs/hooks-reference.html#
|
879
|
+
* @see https://reactjs.org/docs/hooks-reference.html#useimperativehandle
|
879
880
|
*/
|
880
|
-
function
|
881
|
+
function useImperativeHandle<T, R extends T>(ref: Ref<T>|undefined, init: () => R, inputs?: InputIdentityList): void;
|
881
882
|
// I made 'inputs' required here and in useMemo as there's no point to memoizing without the memoization key
|
882
883
|
// useCallback(X) is identical to just using X, useMemo(() => Y) is identical to just using Y.
|
883
884
|
/**
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "16.
|
3
|
+
"version": "16.8.0",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"license": "MIT",
|
6
6
|
"contributors": [
|
@@ -93,13 +93,18 @@
|
|
93
93
|
},
|
94
94
|
{
|
95
95
|
"name": "Jessica Franco",
|
96
|
-
"url": "https://github.com/
|
97
|
-
"githubUsername": "
|
96
|
+
"url": "https://github.com/Jessidhia",
|
97
|
+
"githubUsername": "Jessidhia"
|
98
98
|
},
|
99
99
|
{
|
100
100
|
"name": "Paul Sherman",
|
101
101
|
"url": "https://github.com/pshrmn",
|
102
102
|
"githubUsername": "pshrmn"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"name": "Sunil Pai",
|
106
|
+
"url": "https://github.com/threepointone",
|
107
|
+
"githubUsername": "threepointone"
|
103
108
|
}
|
104
109
|
],
|
105
110
|
"main": "",
|
@@ -113,6 +118,6 @@
|
|
113
118
|
"@types/prop-types": "*",
|
114
119
|
"csstype": "^2.2.0"
|
115
120
|
},
|
116
|
-
"typesPublisherContentHash": "
|
121
|
+
"typesPublisherContentHash": "1acfcff0f8ab4e67ed6c1f0f7072674d2d41043f185eed50d09ca083c48a96ac",
|
117
122
|
"typeScriptVersion": "2.8"
|
118
123
|
}
|