@types/react-dom 18.2.14 → 18.2.16

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: Mon, 20 Nov 2023 23:36:24 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.16",
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": "92e8a0c4e89d1016692884d247bc1cef054510a6ce006161bda93a48c509af2c",
86
86
  "typeScriptVersion": "4.5"
87
87
  }
react-dom/server.d.ts CHANGED
@@ -1,23 +1,23 @@
1
1
  // forward declarations
2
2
  declare global {
3
3
  namespace NodeJS {
4
- // tslint:disable-next-line:no-empty-interface
4
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
5
5
  interface ReadableStream {}
6
6
 
7
- // tslint:disable-next-line:no-empty-interface
7
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
8
8
  interface WritableStream {}
9
9
  }
10
10
 
11
11
  /**
12
12
  * Stub for https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
13
13
  */
14
- // tslint:disable-next-line:no-empty-interface
14
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
15
15
  interface AbortSignal {}
16
16
 
17
17
  /**
18
18
  * Stub for https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream
19
19
  */
20
- // tslint:disable-next-line:no-empty-interface
20
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
21
21
  interface ReadableStream {}
22
22
  }
23
23