@types/react 16.14.3 → 16.14.4
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 v16.14/README.md +1 -1
- react v16.14/index.d.ts +5 -2
- react v16.14/package.json +2 -2
react v16.14/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/v16.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Fri, 12 Feb 2021 18:02:48 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 v16.14/index.d.ts
CHANGED
@@ -61,6 +61,10 @@ interface SchedulerInteraction {
|
|
61
61
|
timestamp: number;
|
62
62
|
}
|
63
63
|
|
64
|
+
declare const UNDEFINED_VOID_ONLY: unique symbol;
|
65
|
+
// Destructors are only allowed to return void.
|
66
|
+
type Destructor = () => void | { [UNDEFINED_VOID_ONLY]: never };
|
67
|
+
|
64
68
|
// tslint:disable-next-line:export-just-namespace
|
65
69
|
export = React;
|
66
70
|
export as namespace React;
|
@@ -892,8 +896,7 @@ declare namespace React {
|
|
892
896
|
type DependencyList = ReadonlyArray<any>;
|
893
897
|
|
894
898
|
// NOTE: callbacks are _only_ allowed to return either void, or a destructor.
|
895
|
-
|
896
|
-
type EffectCallback = () => (void | (() => void | undefined));
|
899
|
+
type EffectCallback = () => (void | Destructor);
|
897
900
|
|
898
901
|
interface MutableRefObject<T> {
|
899
902
|
current: T;
|
react v16.14/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "16.14.
|
3
|
+
"version": "16.14.4",
|
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": "fe61a2fd3f98961570899034e6de539579e385542cdc7142518fca624f5965bb",
|
148
148
|
"typeScriptVersion": "3.4"
|
149
149
|
}
|