@types/react-dom 18.2.14 → 18.2.15

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 CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for react-dom (https://reactjs.org).
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, 18 Oct 2023 18:04:04 GMT
11
+ * Last updated: Tue, 07 Nov 2023 20:08:00 GMT
12
12
  * Dependencies: [@types/react](https://npmjs.com/package/@types/react)
13
13
 
14
14
  # Credits
react-dom/canary.d.ts CHANGED
@@ -128,15 +128,15 @@ declare module "." {
128
128
  function useFormStatus(): FormStatus;
129
129
 
130
130
  function useFormState<State>(
131
- action: (state: State) => Promise<State>,
132
- initialState: State,
131
+ action: (state: Awaited<State>) => State | Promise<State>,
132
+ initialState: Awaited<State>,
133
133
  permalink?: string,
134
- ): [state: State, dispatch: () => void];
134
+ ): [state: Awaited<State>, dispatch: () => void];
135
135
  function useFormState<State, Payload>(
136
- action: (state: State, payload: Payload) => Promise<State>,
137
- initialState: State,
136
+ action: (state: Awaited<State>, payload: Payload) => State | Promise<State>,
137
+ initialState: Awaited<State>,
138
138
  permalink?: string,
139
- ): [state: State, dispatch: (payload: Payload) => void];
139
+ ): [state: Awaited<State>, dispatch: (payload: Payload) => void];
140
140
  }
141
141
 
142
142
  declare module "./client" {
react-dom/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react-dom",
3
- "version": "18.2.14",
3
+ "version": "18.2.15",
4
4
  "description": "TypeScript definitions for react-dom",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom",
6
6
  "license": "MIT",
@@ -82,6 +82,6 @@
82
82
  "dependencies": {
83
83
  "@types/react": "*"
84
84
  },
85
- "typesPublisherContentHash": "a91527c44aa825000d86a4ee5471f4cfc93028a45d97c624bca8ba664455d44e",
85
+ "typesPublisherContentHash": "89d2db51d9354952a5871fe6343896615ca4e228ef8582ba6fb69ec1c5d89456",
86
86
  "typeScriptVersion": "4.5"
87
87
  }