@types/react 19.0.14 → 19.1.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 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: Wed, 02 Apr 2025 07:02:12 GMT
11
+ * Last updated: Fri, 11 Apr 2025 15:34:45 GMT
12
12
  * Dependencies: [csstype](https://npmjs.com/package/csstype)
13
13
 
14
14
  # Credits
react/canary.d.ts CHANGED
@@ -32,11 +32,4 @@ type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
32
32
 
33
33
  declare module "." {
34
34
  export function unstable_useCacheRefresh(): () => void;
35
-
36
- /**
37
- * Warning: Only available in development builds.
38
- *
39
- * @see {@link https://react.dev/reference/react/captureOwnerStack Reference docs}
40
- */
41
- function captureOwnerStack(): string | null;
42
35
  }
react/experimental.d.ts CHANGED
@@ -214,4 +214,19 @@ declare module "." {
214
214
  export interface FragmentProps {
215
215
  ref?: Ref<FragmentInstance> | undefined;
216
216
  }
217
+
218
+ // @enableActivity
219
+ export interface ActivityProps {
220
+ /**
221
+ * @default "visible"
222
+ */
223
+ mode?:
224
+ | "hidden"
225
+ | "visible"
226
+ | undefined;
227
+ children: ReactNode;
228
+ }
229
+
230
+ /** */
231
+ export const unstable_Activity: ExoticComponent<ActivityProps>;
217
232
  }
react/index.d.ts CHANGED
@@ -1938,6 +1938,13 @@ declare namespace React {
1938
1938
  // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
1939
1939
  export function cache<CachedFunction extends Function>(fn: CachedFunction): CachedFunction;
1940
1940
 
1941
+ /**
1942
+ * Warning: Only available in development builds.
1943
+ *
1944
+ * @see {@link https://react.dev/reference/react/captureOwnerStack Reference docs}
1945
+ */
1946
+ function captureOwnerStack(): string | null;
1947
+
1941
1948
  //
1942
1949
  // Event System
1943
1950
  // ----------------------------------------------------------------------
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "19.0.14",
3
+ "version": "19.1.1",
4
4
  "description": "TypeScript definitions for react",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -205,6 +205,6 @@
205
205
  "csstype": "^3.0.2"
206
206
  },
207
207
  "peerDependencies": {},
208
- "typesPublisherContentHash": "955ad44f609574f1aa357f302a000fd1ff72040c97acd98002fc0f625c4bb5f3",
208
+ "typesPublisherContentHash": "c26a2243260136cf2f603397b7d6123ad019dfeba3c35c2546d2e1603afcb385",
209
209
  "typeScriptVersion": "5.1"
210
210
  }
react/ts5.0/canary.d.ts CHANGED
@@ -32,11 +32,4 @@ type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
32
32
 
33
33
  declare module "." {
34
34
  export function unstable_useCacheRefresh(): () => void;
35
-
36
- /**
37
- * Warning: Only available in development builds.
38
- *
39
- * @see {@link https://react.dev/reference/react/captureOwnerStack Reference docs}
40
- */
41
- function captureOwnerStack(): string | null;
42
35
  }
@@ -214,4 +214,19 @@ declare module "." {
214
214
  export interface FragmentProps {
215
215
  ref?: Ref<FragmentInstance> | undefined;
216
216
  }
217
+
218
+ // @enableActivity
219
+ export interface ActivityProps {
220
+ /**
221
+ * @default "visible"
222
+ */
223
+ mode?:
224
+ | "hidden"
225
+ | "visible"
226
+ | undefined;
227
+ children: ReactNode;
228
+ }
229
+
230
+ /** */
231
+ export const unstable_Activity: ExoticComponent<ActivityProps>;
217
232
  }
react/ts5.0/index.d.ts CHANGED
@@ -1937,6 +1937,13 @@ declare namespace React {
1937
1937
  // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
1938
1938
  export function cache<CachedFunction extends Function>(fn: CachedFunction): CachedFunction;
1939
1939
 
1940
+ /**
1941
+ * Warning: Only available in development builds.
1942
+ *
1943
+ * @see {@link https://react.dev/reference/react/captureOwnerStack Reference docs}
1944
+ */
1945
+ function captureOwnerStack(): string | null;
1946
+
1940
1947
  //
1941
1948
  // Event System
1942
1949
  // ----------------------------------------------------------------------