@types/react 19.1.16 → 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: Tue, 30 Sep 2025 06:02:33 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.16",
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": "0ccdf482fde5f39d1a41a361fa71c0522327dafe0d9ffb714ffb607038d0c56a",
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
@@ -1126,7 +1126,8 @@ declare namespace React {
1126
1126
  interface ComponentClass<P = {}, S = ComponentState> extends StaticLifecycle<P, S> {
1127
1127
  // constructor signature must match React.Component
1128
1128
  new(
1129
- props: P, /**
1129
+ props: P,
1130
+ /**
1130
1131
  * Value of the parent {@link https://react.dev/reference/react/Component#context Context} specified
1131
1132
  * in `contextType`.
1132
1133
  */
@@ -1772,6 +1773,12 @@ declare namespace React {
1772
1773
  * @see {@link https://react.dev/reference/react/useEffect}
1773
1774
  */
1774
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;
1775
1782
  // NOTE: this does not accept strings, but this will have to be fixed by removing strings from type Ref<T>
1776
1783
  /**
1777
1784
  * `useImperativeHandle` customizes the instance value that is exposed to parent components when using
@@ -1936,10 +1943,39 @@ declare namespace React {
1936
1943
  // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
1937
1944
  export function cache<CachedFunction extends Function>(fn: CachedFunction): CachedFunction;
1938
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
+
1939
1974
  /**
1940
1975
  * Warning: Only available in development builds.
1941
1976
  *
1942
1977
  * @see {@link https://react.dev/reference/react/captureOwnerStack Reference docs}
1978
+ * @version 19.1.0
1943
1979
  */
1944
1980
  function captureOwnerStack(): string | null;
1945
1981