@types/react 19.2.17 → 19.2.18

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: Fri, 05 Jun 2026 20:10:10 GMT
11
+ * Last updated: Thu, 30 Jul 2026 21:50:54 GMT
12
12
  * Dependencies: [csstype](https://npmjs.com/package/csstype)
13
13
 
14
14
  # Credits
react/index.d.ts CHANGED
@@ -1959,7 +1959,16 @@ declare namespace React {
1959
1959
  | FulfilledReactPromise<T>
1960
1960
  | RejectedReactPromise<T>;
1961
1961
 
1962
- export type Usable<T> = ReactPromise<T> | Context<T>;
1962
+ /**
1963
+ * A registry of renderer-specific {@link Usable} types.
1964
+ *
1965
+ * Renderers (e.g. `react-dom`) augment this interface via `declare module "react"`,
1966
+ * adding an entry keyed by a renderer-specific string whose type becomes a valid
1967
+ * argument to {@link use}. Only renderers should augment this interface.
1968
+ */
1969
+ export interface RendererUsable<T> {}
1970
+
1971
+ export type Usable<T> = ReactPromise<T> | Context<T> | RendererUsable<T>[keyof RendererUsable<T>];
1963
1972
 
1964
1973
  export function use<T>(usable: Usable<T>): T;
1965
1974
 
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "19.2.17",
3
+ "version": "19.2.18",
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.2.2"
206
206
  },
207
207
  "peerDependencies": {},
208
- "typesPublisherContentHash": "f6d087e89b6a483b6ea2519d4f16498227ceb3260f6a6414fed750badc869721",
209
- "typeScriptVersion": "5.3"
208
+ "typesPublisherContentHash": "7694d96d924f28718f57b029b2c1a3dd61c406fa6ac1ef2619887840a17bfc33",
209
+ "typeScriptVersion": "5.6"
210
210
  }
react/ts5.0/index.d.ts CHANGED
@@ -1958,7 +1958,16 @@ declare namespace React {
1958
1958
  | FulfilledReactPromise<T>
1959
1959
  | RejectedReactPromise<T>;
1960
1960
 
1961
- export type Usable<T> = ReactPromise<T> | Context<T>;
1961
+ /**
1962
+ * A registry of renderer-specific {@link Usable} types.
1963
+ *
1964
+ * Renderers (e.g. `react-dom`) augment this interface via `declare module "react"`,
1965
+ * adding an entry keyed by a renderer-specific string whose type becomes a valid
1966
+ * argument to {@link use}. Only renderers should augment this interface.
1967
+ */
1968
+ export interface RendererUsable<T> {}
1969
+
1970
+ export type Usable<T> = ReactPromise<T> | Context<T> | RendererUsable<T>[keyof RendererUsable<T>];
1962
1971
 
1963
1972
  export function use<T>(usable: Usable<T>): T;
1964
1973