@types/react 16.14.44 → 16.14.45

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 v16.14/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/v16.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 08 Aug 2023 06:32:50 GMT
11
+ * Last updated: Wed, 09 Aug 2023 19:02:52 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 v16.14/index.d.ts CHANGED
@@ -52,6 +52,7 @@ type NativeTransitionEvent = TransitionEvent;
52
52
  type NativeUIEvent = UIEvent;
53
53
  type NativeWheelEvent = WheelEvent;
54
54
  type Booleanish = boolean | 'true' | 'false';
55
+ type CrossOrigin = 'anonymous' | 'use-credentials' | '' | undefined;
55
56
 
56
57
  declare const UNDEFINED_VOID_ONLY: unique symbol;
57
58
  // Destructors are only allowed to return void.
@@ -1911,7 +1912,7 @@ declare namespace React {
1911
1912
  colSpan?: number | undefined;
1912
1913
  controls?: boolean | undefined;
1913
1914
  coords?: string | undefined;
1914
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
1915
+ crossOrigin?: CrossOrigin;
1915
1916
  data?: string | undefined;
1916
1917
  dateTime?: string | undefined;
1917
1918
  default?: boolean | undefined;
@@ -2146,7 +2147,7 @@ declare namespace React {
2146
2147
 
2147
2148
  interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
2148
2149
  alt?: string | undefined;
2149
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2150
+ crossOrigin?: CrossOrigin;
2150
2151
  decoding?: "async" | "auto" | "sync" | undefined;
2151
2152
  height?: number | string | undefined;
2152
2153
  loading?: "eager" | "lazy" | undefined;
@@ -2194,7 +2195,6 @@ declare namespace React {
2194
2195
  autoComplete?: string | undefined;
2195
2196
  capture?: boolean | string | undefined; // https://www.w3.org/TR/html-media-capture/#the-capture-attribute
2196
2197
  checked?: boolean | undefined;
2197
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2198
2198
  disabled?: boolean | undefined;
2199
2199
  form?: string | undefined;
2200
2200
  formAction?: string | undefined;
@@ -2244,7 +2244,7 @@ declare namespace React {
2244
2244
 
2245
2245
  interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
2246
2246
  as?: string | undefined;
2247
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2247
+ crossOrigin?: CrossOrigin;
2248
2248
  fetchPriority?: "high" | "low" | "auto";
2249
2249
  href?: string | undefined;
2250
2250
  hrefLang?: string | undefined;
@@ -2269,7 +2269,7 @@ declare namespace React {
2269
2269
  autoPlay?: boolean | undefined;
2270
2270
  controls?: boolean | undefined;
2271
2271
  controlsList?: string | undefined;
2272
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2272
+ crossOrigin?: CrossOrigin;
2273
2273
  loop?: boolean | undefined;
2274
2274
  mediaGroup?: string | undefined;
2275
2275
  muted?: boolean | undefined;
@@ -2353,7 +2353,7 @@ declare namespace React {
2353
2353
  async?: boolean | undefined;
2354
2354
  /** @deprecated */
2355
2355
  charSet?: string | undefined;
2356
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2356
+ crossOrigin?: CrossOrigin;
2357
2357
  defer?: boolean | undefined;
2358
2358
  integrity?: string | undefined;
2359
2359
  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": "16.14.44",
3
+ "version": "16.14.45",
4
4
  "description": "TypeScript definitions for React",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -146,7 +146,7 @@
146
146
  "@types/scheduler": "*",
147
147
  "csstype": "^3.0.2"
148
148
  },
149
- "typesPublisherContentHash": "cfd3fc64efe00571c7df3ec5459c73f06cc1c64f5e6a507c1a38b3329066a3a7",
149
+ "typesPublisherContentHash": "b60fa62af67aef0d605dd6437c3d786ae0f1c5bd076f6a1d06afd3f34d453ac6",
150
150
  "typeScriptVersion": "4.3",
151
151
  "exports": {
152
152
  ".": {