@types/react 17.0.62 → 17.0.64

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 v17.0/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/v17.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 13 Jun 2023 15:32:53 GMT
11
+ * Last updated: Wed, 09 Aug 2023 19:02:51 GMT
12
12
  * Dependencies: [@types/csstype](https://npmjs.com/package/@types/csstype), [@types/prop-types](https://npmjs.com/package/@types/prop-types), [@types/scheduler](https://npmjs.com/package/@types/scheduler)
13
13
  * Global values: `React`
14
14
 
react v17.0/index.d.ts CHANGED
@@ -48,6 +48,7 @@ type NativeTransitionEvent = TransitionEvent;
48
48
  type NativeUIEvent = UIEvent;
49
49
  type NativeWheelEvent = WheelEvent;
50
50
  type Booleanish = boolean | 'true' | 'false';
51
+ type CrossOrigin = 'anonymous' | 'use-credentials' | '' | undefined;
51
52
 
52
53
  declare const UNDEFINED_VOID_ONLY: unique symbol;
53
54
  // Destructors are only allowed to return void.
@@ -1910,7 +1911,7 @@ declare namespace React {
1910
1911
  colSpan?: number | undefined;
1911
1912
  controls?: boolean | undefined;
1912
1913
  coords?: string | undefined;
1913
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
1914
+ crossOrigin?: CrossOrigin;
1914
1915
  data?: string | undefined;
1915
1916
  dateTime?: string | undefined;
1916
1917
  default?: boolean | undefined;
@@ -2144,7 +2145,7 @@ declare namespace React {
2144
2145
 
2145
2146
  interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
2146
2147
  alt?: string | undefined;
2147
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2148
+ crossOrigin?: CrossOrigin;
2148
2149
  decoding?: "async" | "auto" | "sync" | undefined;
2149
2150
  height?: number | string | undefined;
2150
2151
  loading?: "eager" | "lazy" | undefined;
@@ -2192,7 +2193,6 @@ declare namespace React {
2192
2193
  autoComplete?: string | undefined;
2193
2194
  capture?: boolean | 'user' | 'environment' | undefined; // https://www.w3.org/TR/html-media-capture/#the-capture-attribute
2194
2195
  checked?: boolean | undefined;
2195
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2196
2196
  disabled?: boolean | undefined;
2197
2197
  enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | undefined;
2198
2198
  form?: string | undefined;
@@ -2243,8 +2243,8 @@ declare namespace React {
2243
2243
 
2244
2244
  interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
2245
2245
  as?: string | undefined;
2246
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2247
- fetchpriority?: "high" | "low" | "auto";
2246
+ crossOrigin?: CrossOrigin;
2247
+ fetchPriority?: "high" | "low" | "auto";
2248
2248
  href?: string | undefined;
2249
2249
  hrefLang?: string | undefined;
2250
2250
  integrity?: string | undefined;
@@ -2268,7 +2268,7 @@ declare namespace React {
2268
2268
  autoPlay?: boolean | undefined;
2269
2269
  controls?: boolean | undefined;
2270
2270
  controlsList?: string | undefined;
2271
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2271
+ crossOrigin?: CrossOrigin;
2272
2272
  loop?: boolean | undefined;
2273
2273
  mediaGroup?: string | undefined;
2274
2274
  muted?: boolean | undefined;
@@ -2352,7 +2352,7 @@ declare namespace React {
2352
2352
  async?: boolean | undefined;
2353
2353
  /** @deprecated */
2354
2354
  charSet?: string | undefined;
2355
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2355
+ crossOrigin?: CrossOrigin;
2356
2356
  defer?: boolean | undefined;
2357
2357
  integrity?: string | undefined;
2358
2358
  noModule?: boolean | undefined;
@@ -2486,7 +2486,7 @@ declare namespace React {
2486
2486
  // Other HTML properties supported by SVG elements in browsers
2487
2487
  role?: AriaRole | undefined;
2488
2488
  tabIndex?: number | undefined;
2489
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2489
+ crossOrigin?: CrossOrigin;
2490
2490
 
2491
2491
  // SVG Specific attributes
2492
2492
  accentHeight?: number | string | undefined;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "17.0.62",
3
+ "version": "17.0.64",
4
4
  "description": "TypeScript definitions for React",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -151,7 +151,7 @@
151
151
  "@types/scheduler": "*",
152
152
  "csstype": "^3.0.2"
153
153
  },
154
- "typesPublisherContentHash": "dd089125be79e10e0007e919f5b95768413e3b0ffcc27bc6e0b3849cd4781949",
154
+ "typesPublisherContentHash": "892d8cccf524f40981a32199a25f7ed2ca07df5c9c20e7c7a3a4f71015a1d95d",
155
155
  "typeScriptVersion": "4.3",
156
156
  "exports": {
157
157
  ".": {