@types/react 19.2.13 → 19.2.15

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: Tue, 19 May 2026 17:48:56 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.
@@ -3158,7 +3166,7 @@ declare namespace React {
3158
3166
  alt?: string | undefined;
3159
3167
  crossOrigin?: CrossOrigin;
3160
3168
  decoding?: "async" | "auto" | "sync" | undefined;
3161
- fetchPriority?: "high" | "low" | "auto";
3169
+ fetchPriority?: "high" | "low" | "auto" | undefined;
3162
3170
  height?: number | string | undefined;
3163
3171
  loading?: "eager" | "lazy" | undefined;
3164
3172
  referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
@@ -3331,7 +3339,7 @@ declare namespace React {
3331
3339
  as?: string | undefined;
3332
3340
  blocking?: "render" | (string & {}) | undefined;
3333
3341
  crossOrigin?: CrossOrigin;
3334
- fetchPriority?: "high" | "low" | "auto";
3342
+ fetchPriority?: "high" | "low" | "auto" | undefined;
3335
3343
  href?: string | undefined;
3336
3344
  hrefLang?: string | undefined;
3337
3345
  integrity?: string | undefined;
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "19.2.13",
3
+ "version": "19.2.15",
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",
209
- "typeScriptVersion": "5.2"
208
+ "typesPublisherContentHash": "0f33f9dadf4926d9b2231f4f9014899ecad501a66807a1aa79575dd4f661b5bf",
209
+ "typeScriptVersion": "5.3"
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.
@@ -3157,7 +3165,7 @@ declare namespace React {
3157
3165
  alt?: string | undefined;
3158
3166
  crossOrigin?: CrossOrigin;
3159
3167
  decoding?: "async" | "auto" | "sync" | undefined;
3160
- fetchPriority?: "high" | "low" | "auto";
3168
+ fetchPriority?: "high" | "low" | "auto" | undefined;
3161
3169
  height?: number | string | undefined;
3162
3170
  loading?: "eager" | "lazy" | undefined;
3163
3171
  referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
@@ -3330,7 +3338,7 @@ declare namespace React {
3330
3338
  as?: string | undefined;
3331
3339
  blocking?: "render" | (string & {}) | undefined;
3332
3340
  crossOrigin?: CrossOrigin;
3333
- fetchPriority?: "high" | "low" | "auto";
3341
+ fetchPriority?: "high" | "low" | "auto" | undefined;
3334
3342
  href?: string | undefined;
3335
3343
  hrefLang?: string | undefined;
3336
3344
  integrity?: string | undefined;