@types/react 18.0.19 → 18.0.21
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 +3 -0
- react/index.d.ts +1 -1
- 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: Thu, 22 Sep 2022 16:32:39 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
@@ -129,4 +129,7 @@ declare module '.' {
|
|
129
129
|
export type Usable<T> = Thenable<T> | Context<T>;
|
130
130
|
|
131
131
|
export function experimental_use<T>(usable: Usable<T>): T;
|
132
|
+
|
133
|
+
// tslint:disable-next-line ban-types
|
134
|
+
export function experimental_useEvent<T extends Function>(event: T): T;
|
132
135
|
}
|
react/index.d.ts
CHANGED
@@ -58,7 +58,7 @@ declare const UNDEFINED_VOID_ONLY: unique symbol;
|
|
58
58
|
type Destructor = () => void | { [UNDEFINED_VOID_ONLY]: never };
|
59
59
|
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
60
60
|
|
61
|
-
//
|
61
|
+
// eslint-disable-next-line export-just-namespace
|
62
62
|
export = React;
|
63
63
|
export as namespace React;
|
64
64
|
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "18.0.
|
3
|
+
"version": "18.0.21",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -146,7 +146,7 @@
|
|
146
146
|
"@types/scheduler": "*",
|
147
147
|
"csstype": "^3.0.2"
|
148
148
|
},
|
149
|
-
"typesPublisherContentHash": "
|
149
|
+
"typesPublisherContentHash": "69c972e7538ec55b48bc7e30e03de126298ffaf2e8ccd24e571b280106dab557",
|
150
150
|
"typeScriptVersion": "4.1",
|
151
151
|
"exports": {
|
152
152
|
".": {
|