@types/react 19.2.13 → 19.2.14

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: Thu, 05 Feb 2026 10:12:25 GMT
11
+ * Last updated: Wed, 11 Feb 2026 11:44:57 GMT
12
12
  * Dependencies: [csstype](https://npmjs.com/package/csstype)
13
13
 
14
14
  # Credits
react/experimental.d.ts CHANGED
@@ -174,4 +174,11 @@ declare module "." {
174
174
  interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_MEDIA_SRC_TYPES {
175
175
  srcObject: Blob | MediaSource | MediaStream;
176
176
  }
177
+
178
+ // @enableOptimisticKey
179
+ export const optimisticKey: unique symbol;
180
+
181
+ interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_KEY_TYPES {
182
+ optimisticKey: typeof optimisticKey;
183
+ }
177
184
  }
react/index.d.ts CHANGED
@@ -226,12 +226,20 @@ declare namespace React {
226
226
 
227
227
  type ComponentState = any;
228
228
 
229
+ interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_KEY_TYPES {}
230
+
229
231
  /**
230
232
  * A value which uniquely identifies a node among items in an array.
231
233
  *
232
234
  * @see {@link https://react.dev/learn/rendering-lists#keeping-list-items-in-order-with-key React Docs}
233
235
  */
234
- type Key = string | number | bigint;
236
+ type Key =
237
+ | string
238
+ | number
239
+ | bigint
240
+ | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_KEY_TYPES[
241
+ keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_KEY_TYPES
242
+ ];
235
243
 
236
244
  /**
237
245
  * @internal The props any component can receive.
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "19.2.13",
3
+ "version": "19.2.14",
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": "20f3b89e619c9f614e881f4a928351ed1d1a9c228d36dccb133288229bc0aff6",
208
+ "typesPublisherContentHash": "daae8d23e06b3d45da3803abb3f0bad661cffb4c40282d6886d8dfde7d5eea01",
209
209
  "typeScriptVersion": "5.2"
210
210
  }
@@ -174,4 +174,11 @@ declare module "." {
174
174
  interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_MEDIA_SRC_TYPES {
175
175
  srcObject: Blob | MediaSource | MediaStream;
176
176
  }
177
+
178
+ // @enableOptimisticKey
179
+ export const optimisticKey: unique symbol;
180
+
181
+ interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_KEY_TYPES {
182
+ optimisticKey: typeof optimisticKey;
183
+ }
177
184
  }
react/ts5.0/index.d.ts CHANGED
@@ -226,12 +226,20 @@ declare namespace React {
226
226
 
227
227
  type ComponentState = any;
228
228
 
229
+ interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_KEY_TYPES {}
230
+
229
231
  /**
230
232
  * A value which uniquely identifies a node among items in an array.
231
233
  *
232
234
  * @see {@link https://react.dev/learn/rendering-lists#keeping-list-items-in-order-with-key React Docs}
233
235
  */
234
- type Key = string | number | bigint;
236
+ type Key =
237
+ | string
238
+ | number
239
+ | bigint
240
+ | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_KEY_TYPES[
241
+ keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_KEY_TYPES
242
+ ];
235
243
 
236
244
  /**
237
245
  * @internal The props any component can receive.