@types/react 19.1.17 → 19.2.0

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, 01 Oct 2025 17:02:25 GMT
11
+ * Last updated: Wed, 01 Oct 2025 22:02:19 GMT
12
12
  * Dependencies: [csstype](https://npmjs.com/package/csstype)
13
13
 
14
14
  # Credits
react/canary.d.ts CHANGED
@@ -32,35 +32,4 @@ type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
32
32
 
33
33
  declare module "." {
34
34
  export function unstable_useCacheRefresh(): () => void;
35
-
36
- export interface CacheSignal {}
37
- export function cacheSignal(): null | CacheSignal;
38
-
39
- // @enableActivity
40
- export interface ActivityProps {
41
- /**
42
- * @default "visible"
43
- */
44
- mode?:
45
- | "hidden"
46
- | "visible"
47
- | undefined;
48
- /**
49
- * A name for this Activity boundary for instrumentation purposes.
50
- * The name will help identify this boundary in React DevTools.
51
- */
52
- name?: string | undefined;
53
- children: ReactNode;
54
- }
55
-
56
- /**
57
- * @see {@link https://react.dev/reference/react/Activity `<Activity>` documentation}
58
- */
59
- export const Activity: ExoticComponent<ActivityProps>;
60
-
61
- /**
62
- * @see {@link https://react.dev/reference/react/useEffectEvent `useEffectEvent()` documentation}
63
- */
64
- // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
65
- export function useEffectEvent<T extends Function>(callback: T): T;
66
35
  }
react/index.d.ts CHANGED
@@ -1774,6 +1774,12 @@ declare namespace React {
1774
1774
  * @see {@link https://react.dev/reference/react/useEffect}
1775
1775
  */
1776
1776
  function useEffect(effect: EffectCallback, deps?: DependencyList): void;
1777
+ /**
1778
+ * @see {@link https://react.dev/reference/react/useEffectEvent `useEffectEvent()` documentation}
1779
+ * @version 19.2.0
1780
+ */
1781
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
1782
+ export function useEffectEvent<T extends Function>(callback: T): T;
1777
1783
  // NOTE: this does not accept strings, but this will have to be fixed by removing strings from type Ref<T>
1778
1784
  /**
1779
1785
  * `useImperativeHandle` customizes the instance value that is exposed to parent components when using
@@ -1938,10 +1944,39 @@ declare namespace React {
1938
1944
  // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
1939
1945
  export function cache<CachedFunction extends Function>(fn: CachedFunction): CachedFunction;
1940
1946
 
1947
+ export interface CacheSignal {}
1948
+ /**
1949
+ * @version 19.2.0
1950
+ */
1951
+ export function cacheSignal(): null | CacheSignal;
1952
+
1953
+ export interface ActivityProps {
1954
+ /**
1955
+ * @default "visible"
1956
+ */
1957
+ mode?:
1958
+ | "hidden"
1959
+ | "visible"
1960
+ | undefined;
1961
+ /**
1962
+ * A name for this Activity boundary for instrumentation purposes.
1963
+ * The name will help identify this boundary in React DevTools.
1964
+ */
1965
+ name?: string | undefined;
1966
+ children: ReactNode;
1967
+ }
1968
+
1969
+ /**
1970
+ * @see {@link https://react.dev/reference/react/Activity `<Activity>` documentation}
1971
+ * @version 19.2.0
1972
+ */
1973
+ export const Activity: ExoticComponent<ActivityProps>;
1974
+
1941
1975
  /**
1942
1976
  * Warning: Only available in development builds.
1943
1977
  *
1944
1978
  * @see {@link https://react.dev/reference/react/captureOwnerStack Reference docs}
1979
+ * @version 19.1.0
1945
1980
  */
1946
1981
  function captureOwnerStack(): string | null;
1947
1982
 
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "19.1.17",
3
+ "version": "19.2.0",
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": "88f50d5bb0338b7142b9c2f85f777ba5a29c003018ee74638bedaba8b2c3ae56",
208
+ "typesPublisherContentHash": "c9a97f0f7c3420dded9204849fbe3d4fd1a547115618e12f5801b737d9b9fa61",
209
209
  "typeScriptVersion": "5.2"
210
210
  }
react/ts5.0/canary.d.ts CHANGED
@@ -32,35 +32,4 @@ type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
32
32
 
33
33
  declare module "." {
34
34
  export function unstable_useCacheRefresh(): () => void;
35
-
36
- export interface CacheSignal {}
37
- export function cacheSignal(): null | CacheSignal;
38
-
39
- // @enableActivity
40
- export interface ActivityProps {
41
- /**
42
- * @default "visible"
43
- */
44
- mode?:
45
- | "hidden"
46
- | "visible"
47
- | undefined;
48
- /**
49
- * A name for this Activity boundary for instrumentation purposes.
50
- * The name will help identify this boundary in React DevTools.
51
- */
52
- name?: string | undefined;
53
- children: ReactNode;
54
- }
55
-
56
- /**
57
- * @see {@link https://react.dev/reference/react/Activity `<Activity>` documentation}
58
- */
59
- export const Activity: ExoticComponent<ActivityProps>;
60
-
61
- /**
62
- * @see {@link https://react.dev/reference/react/useEffectEvent `useEffectEvent()` documentation}
63
- */
64
- // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
65
- export function useEffectEvent<T extends Function>(callback: T): T;
66
35
  }
react/ts5.0/index.d.ts CHANGED
@@ -1773,6 +1773,12 @@ declare namespace React {
1773
1773
  * @see {@link https://react.dev/reference/react/useEffect}
1774
1774
  */
1775
1775
  function useEffect(effect: EffectCallback, deps?: DependencyList): void;
1776
+ /**
1777
+ * @see {@link https://react.dev/reference/react/useEffectEvent `useEffectEvent()` documentation}
1778
+ * @version 19.2.0
1779
+ */
1780
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
1781
+ export function useEffectEvent<T extends Function>(callback: T): T;
1776
1782
  // NOTE: this does not accept strings, but this will have to be fixed by removing strings from type Ref<T>
1777
1783
  /**
1778
1784
  * `useImperativeHandle` customizes the instance value that is exposed to parent components when using
@@ -1937,10 +1943,39 @@ declare namespace React {
1937
1943
  // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
1938
1944
  export function cache<CachedFunction extends Function>(fn: CachedFunction): CachedFunction;
1939
1945
 
1946
+ export interface CacheSignal {}
1947
+ /**
1948
+ * @version 19.2.0
1949
+ */
1950
+ export function cacheSignal(): null | CacheSignal;
1951
+
1952
+ export interface ActivityProps {
1953
+ /**
1954
+ * @default "visible"
1955
+ */
1956
+ mode?:
1957
+ | "hidden"
1958
+ | "visible"
1959
+ | undefined;
1960
+ /**
1961
+ * A name for this Activity boundary for instrumentation purposes.
1962
+ * The name will help identify this boundary in React DevTools.
1963
+ */
1964
+ name?: string | undefined;
1965
+ children: ReactNode;
1966
+ }
1967
+
1968
+ /**
1969
+ * @see {@link https://react.dev/reference/react/Activity `<Activity>` documentation}
1970
+ * @version 19.2.0
1971
+ */
1972
+ export const Activity: ExoticComponent<ActivityProps>;
1973
+
1940
1974
  /**
1941
1975
  * Warning: Only available in development builds.
1942
1976
  *
1943
1977
  * @see {@link https://react.dev/reference/react/captureOwnerStack Reference docs}
1978
+ * @version 19.1.0
1944
1979
  */
1945
1980
  function captureOwnerStack(): string | null;
1946
1981