@types/react 18.0.38 → 18.2.1
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 +14 -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 (https://react.dev/).
|
|
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: Wed, 03 May 2023 16:02:45 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
@@ -38,6 +38,9 @@ import React = require('./next');
|
|
38
38
|
|
39
39
|
export {};
|
40
40
|
|
41
|
+
declare const UNDEFINED_VOID_ONLY: unique symbol;
|
42
|
+
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
43
|
+
|
41
44
|
declare module '.' {
|
42
45
|
export interface SuspenseProps {
|
43
46
|
/**
|
@@ -109,4 +112,15 @@ declare module '.' {
|
|
109
112
|
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS {
|
110
113
|
functions: (formData: FormData) => void;
|
111
114
|
}
|
115
|
+
|
116
|
+
export interface TransitionStartFunction {
|
117
|
+
/**
|
118
|
+
* Marks all state updates inside the async function as transitions
|
119
|
+
*
|
120
|
+
* @see {https://react.dev/reference/react/useTransition#starttransition}
|
121
|
+
*
|
122
|
+
* @param callback
|
123
|
+
*/
|
124
|
+
(callback: () => Promise<VoidOrUndefinedOnly>): void;
|
125
|
+
}
|
112
126
|
}
|
react/index.d.ts
CHANGED
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "18.
|
3
|
+
"version": "18.2.1",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -158,7 +158,7 @@
|
|
158
158
|
"@types/scheduler": "*",
|
159
159
|
"csstype": "^3.0.2"
|
160
160
|
},
|
161
|
-
"typesPublisherContentHash": "
|
161
|
+
"typesPublisherContentHash": "5a527e26de4273111ffb28c278bd313f63019a022384c79df04607e8f0b6d1bd",
|
162
162
|
"typeScriptVersion": "4.3",
|
163
163
|
"exports": {
|
164
164
|
".": {
|