@types/react-dom 18.2.8 → 18.2.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-dom/README.md +1 -1
- react-dom/experimental.d.ts +23 -0
- react-dom/package.json +2 -2
react-dom/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for React (react-dom) (https://reactjs.or
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated: Wed,
|
11
|
+
* Last updated: Wed, 04 Oct 2023 14:05:53 GMT
|
12
12
|
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)
|
13
13
|
* Global values: `ReactDOM`, `ReactDOMServer`
|
14
14
|
|
react-dom/experimental.d.ts
CHANGED
@@ -32,6 +32,8 @@ import ReactDOM = require("./canary");
|
|
32
32
|
|
33
33
|
export {};
|
34
34
|
|
35
|
+
declare const REACT_FORM_STATE_SIGIL: unique symbol;
|
36
|
+
|
35
37
|
declare module "." {
|
36
38
|
interface FormStatusNotPending {
|
37
39
|
pending: false;
|
@@ -50,4 +52,25 @@ declare module "." {
|
|
50
52
|
type FormStatus = FormStatusPending | FormStatusNotPending;
|
51
53
|
|
52
54
|
function experimental_useFormStatus(): FormStatus;
|
55
|
+
|
56
|
+
function experimental_useFormState<State>(
|
57
|
+
action: (state: State) => Promise<State>,
|
58
|
+
initialState: State,
|
59
|
+
permalink?: string,
|
60
|
+
): [state: State, dispatch: () => void];
|
61
|
+
function experimental_useFormState<State, Payload>(
|
62
|
+
action: (state: State, payload: Payload) => Promise<State>,
|
63
|
+
initialState: State,
|
64
|
+
permalink?: string,
|
65
|
+
): [state: State, dispatch: (payload: Payload) => void];
|
66
|
+
}
|
67
|
+
|
68
|
+
declare module './client' {
|
69
|
+
interface ReactFormState {
|
70
|
+
[REACT_FORM_STATE_SIGIL]: never;
|
71
|
+
}
|
72
|
+
|
73
|
+
interface HydrationOptions {
|
74
|
+
experimental_formState?: ReactFormState | null;
|
75
|
+
}
|
53
76
|
}
|
react-dom/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react-dom",
|
3
|
-
"version": "18.2.
|
3
|
+
"version": "18.2.9",
|
4
4
|
"description": "TypeScript definitions for React (react-dom)",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom",
|
6
6
|
"license": "MIT",
|
@@ -49,7 +49,7 @@
|
|
49
49
|
"dependencies": {
|
50
50
|
"@types/react": "*"
|
51
51
|
},
|
52
|
-
"typesPublisherContentHash": "
|
52
|
+
"typesPublisherContentHash": "771c775383a7ee5d36a780b07a71d47c2a43412521804449e3262779a91ad0d5",
|
53
53
|
"typeScriptVersion": "4.5",
|
54
54
|
"exports": {
|
55
55
|
".": {
|