@types/react-dom 19.1.9 → 19.1.10

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://react.dev/).
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: Thu, 28 Aug 2025 12:02:46 GMT
11
+ * Last updated: Wed, 01 Oct 2025 17:02:25 GMT
12
12
  * Dependencies: none
13
13
  * Peer dependencies: [@types/react](https://npmjs.com/package/@types/react)
14
14
 
react-dom/canary.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ /* eslint-disable @definitelytyped/no-self-import -- self-imports in module augmentations aren't self-imports */
2
+ /* eslint-disable @definitelytyped/no-declare-current-package -- The module augmentations are optional */
1
3
  /**
2
4
  * These are types for things that are present in the upcoming React 18 release.
3
5
  *
@@ -35,3 +37,68 @@ declare module "react" {
35
37
  // eslint-disable-next-line @typescript-eslint/no-empty-interface
36
38
  interface CacheSignal extends AbortSignal {}
37
39
  }
40
+
41
+ declare const POSTPONED_STATE_SIGIL: unique symbol;
42
+ declare module "react-dom/static" {
43
+ /**
44
+ * This is an opaque type i.e. users should not make any assumptions about its structure.
45
+ * It is JSON-serializeable to be a able to store it and retrvieve later for use with {@link https://react.dev/reference/react-dom/server/resume `resume`}.
46
+ */
47
+ interface PostponedState {
48
+ [POSTPONED_STATE_SIGIL]: never;
49
+ }
50
+
51
+ interface ResumeOptions {
52
+ nonce?: string;
53
+ signal?: AbortSignal;
54
+ onError?: (error: unknown) => string | undefined | void;
55
+ }
56
+
57
+ interface PrerenderResult {
58
+ postponed: null | PostponedState;
59
+ }
60
+ /**
61
+ * @see {@link https://react.dev/reference/react-dom/static/resumeAndPrerender `resumeAndPrerender` reference documentation}
62
+ * @version 19.2
63
+ */
64
+ function resumeAndPrerender(
65
+ children: React.ReactNode,
66
+ postponedState: PostponedState,
67
+ options?: Omit<ResumeOptions, "nonce">,
68
+ ): Promise<PrerenderResult>;
69
+
70
+ interface PrerenderToNodeStreamResult {
71
+ postponed: null | PostponedState;
72
+ }
73
+ /**
74
+ * @see {@link https://react.dev/reference/react-dom/static/resumeAndPrerenderToNodeStream `resumeAndPrerenderToNodeStream`` reference documentation}
75
+ * @version 19.2
76
+ */
77
+ function resumeAndPrerenderToNodeStream(
78
+ children: React.ReactNode,
79
+ postponedState: PostponedState,
80
+ options?: Omit<ResumeOptions, "nonce">,
81
+ ): Promise<PrerenderToNodeStreamResult>;
82
+ }
83
+
84
+ import { PostponedState, ResumeOptions } from "react-dom/static";
85
+ declare module "react-dom/server" {
86
+ /**
87
+ * @see {@link https://react.dev/reference/react-dom/server/resume `resume`` reference documentation}
88
+ * @version 19.2
89
+ */
90
+ function resume(
91
+ children: React.ReactNode,
92
+ postponedState: PostponedState,
93
+ options?: ResumeOptions,
94
+ ): Promise<ReactDOMServerReadableStream>;
95
+ /**
96
+ * @see {@link https://react.dev/reference/react-dom/server/resumeToPipeableStream `resumeToPipeableStream`` reference documentation}
97
+ * @version 19.2
98
+ */
99
+ function resumeToPipeableStream(
100
+ children: React.ReactNode,
101
+ postponedState: PostponedState,
102
+ options?: ResumeOptions,
103
+ ): Promise<PipeableStream>;
104
+ }
react-dom/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react-dom",
3
- "version": "19.1.9",
3
+ "version": "19.1.10",
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",
@@ -123,6 +123,6 @@
123
123
  "peerDependencies": {
124
124
  "@types/react": "^19.0.0"
125
125
  },
126
- "typesPublisherContentHash": "7dbb3f6967ec6ea50b0b724a9bb3c8d7c7b80b27e0134b57296d46f7b9291d18",
126
+ "typesPublisherContentHash": "5dee0b9e44666864c50b2581f281f3fbf396f9059b30dca24ba1fdc1d19ca2e0",
127
127
  "typeScriptVersion": "5.2"
128
128
  }