@types/react 17.0.8 → 17.0.9
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/experimental.d.ts +4 -4
- react/package.json +4 -3
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: Wed,
|
11
|
+
* Last updated: Wed, 02 Jun 2021 02:01:32 GMT
|
12
12
|
* Dependencies: [@types/csstype](https://npmjs.com/package/@types/csstype), [@types/prop-types](https://npmjs.com/package/@types/prop-types), [@types/scheduler](https://npmjs.com/package/@types/scheduler)
|
13
13
|
* Global values: `React`
|
14
14
|
|
react/experimental.d.ts
CHANGED
@@ -104,7 +104,7 @@ declare module '.' {
|
|
104
104
|
* @see https://reactjs.org/docs/concurrent-mode-reference.html#suspenselist
|
105
105
|
* @see https://reactjs.org/docs/concurrent-mode-patterns.html#suspenselist
|
106
106
|
*/
|
107
|
-
export const
|
107
|
+
export const SuspenseList: ExoticComponent<SuspenseListProps>;
|
108
108
|
|
109
109
|
// must be synchronous
|
110
110
|
export type TransitionFunction = () => VoidOrUndefinedOnly;
|
@@ -132,7 +132,7 @@ declare module '.' {
|
|
132
132
|
*
|
133
133
|
* @see https://reactjs.org/docs/concurrent-mode-reference.html#usedeferredvalue
|
134
134
|
*/
|
135
|
-
export function
|
135
|
+
export function useDeferredValue<T>(value: T): T;
|
136
136
|
|
137
137
|
/**
|
138
138
|
* Allows components to avoid undesirable loading states by waiting for content to load
|
@@ -151,7 +151,7 @@ declare module '.' {
|
|
151
151
|
*
|
152
152
|
* @see https://reactjs.org/docs/concurrent-mode-reference.html#usetransition
|
153
153
|
*/
|
154
|
-
export function
|
154
|
+
export function useTransition(): [boolean, TransitionStartFunction];
|
155
155
|
|
156
156
|
const opaqueIdentifierBranding: unique symbol;
|
157
157
|
/**
|
@@ -177,5 +177,5 @@ declare module '.' {
|
|
177
177
|
*
|
178
178
|
* @param callback A _synchronous_ function which causes state updates that can be deferred.
|
179
179
|
*/
|
180
|
-
export function
|
180
|
+
export function startTransition(scope: TransitionFunction): void;
|
181
181
|
}
|
react/package.json
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "17.0.
|
3
|
+
"version": "17.0.9",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
|
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
5
6
|
"license": "MIT",
|
6
7
|
"contributors": [
|
7
8
|
{
|
@@ -150,6 +151,6 @@
|
|
150
151
|
"@types/scheduler": "*",
|
151
152
|
"csstype": "^3.0.2"
|
152
153
|
},
|
153
|
-
"typesPublisherContentHash": "
|
154
|
-
"typeScriptVersion": "3.
|
154
|
+
"typesPublisherContentHash": "038ae5d73fcd277965868acc0a792295891497f18063a518274a7dd89d756c2d",
|
155
|
+
"typeScriptVersion": "3.6"
|
155
156
|
}
|