@types/react 15.7.20 → 15.7.22

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 v15.7/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/v15.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 08 Aug 2023 06:32:51 GMT
11
+ * Last updated: Tue, 22 Aug 2023 18:04:38 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `React`
14
14
 
react v15.7/index.d.ts CHANGED
@@ -62,8 +62,9 @@ type NativeTouchEvent = TouchEvent;
62
62
  type NativeTransitionEvent = TransitionEvent;
63
63
  type NativeUIEvent = UIEvent;
64
64
  type NativeWheelEvent = WheelEvent;
65
+ type CrossOrigin = 'anonymous' | 'use-credentials' | '' | undefined;
65
66
 
66
- // eslint-disable-next-line export-just-namespace
67
+ // eslint-disable-next-line @definitelytyped/export-just-namespace
67
68
  export = React;
68
69
  export as namespace React;
69
70
 
@@ -2678,7 +2679,7 @@ declare namespace React {
2678
2679
  colSpan?: number | undefined;
2679
2680
  controls?: boolean | undefined;
2680
2681
  coords?: string | undefined;
2681
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2682
+ crossOrigin?: CrossOrigin;
2682
2683
  data?: string | undefined;
2683
2684
  dateTime?: string | undefined;
2684
2685
  default?: boolean | undefined;
@@ -2876,7 +2877,7 @@ declare namespace React {
2876
2877
 
2877
2878
  interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
2878
2879
  alt?: string | undefined;
2879
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2880
+ crossOrigin?: CrossOrigin;
2880
2881
  height?: number | string | undefined;
2881
2882
  sizes?: string | undefined;
2882
2883
  src?: string | undefined;
@@ -2896,7 +2897,6 @@ declare namespace React {
2896
2897
  autoComplete?: string | undefined;
2897
2898
  capture?: boolean | string | undefined; // https://www.w3.org/TR/html-media-capture/#the-capture-attribute
2898
2899
  checked?: boolean | undefined;
2899
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2900
2900
  disabled?: boolean | undefined;
2901
2901
  form?: string | undefined;
2902
2902
  formAction?: string | undefined;
@@ -2946,7 +2946,7 @@ declare namespace React {
2946
2946
 
2947
2947
  interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
2948
2948
  as?: string | undefined;
2949
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2949
+ crossOrigin?: CrossOrigin;
2950
2950
  fetchPriority?: "high" | "low" | "auto";
2951
2951
  href?: string | undefined;
2952
2952
  hrefLang?: string | undefined;
@@ -2968,7 +2968,7 @@ declare namespace React {
2968
2968
  interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
2969
2969
  autoPlay?: boolean | undefined;
2970
2970
  controls?: boolean | undefined;
2971
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2971
+ crossOrigin?: CrossOrigin;
2972
2972
  loop?: boolean | undefined;
2973
2973
  mediaGroup?: string | undefined;
2974
2974
  muted?: boolean | undefined;
@@ -3046,7 +3046,7 @@ declare namespace React {
3046
3046
  interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
3047
3047
  async?: boolean | undefined;
3048
3048
  charSet?: string | undefined;
3049
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
3049
+ crossOrigin?: CrossOrigin;
3050
3050
  defer?: boolean | undefined;
3051
3051
  integrity?: string | undefined;
3052
3052
  nonce?: string | undefined;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "15.7.20",
3
+ "version": "15.7.22",
4
4
  "description": "TypeScript definitions for React",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -62,7 +62,7 @@
62
62
  },
63
63
  "scripts": {},
64
64
  "dependencies": {},
65
- "typesPublisherContentHash": "3f6110db3dad3e3bb1a533e192287f64d022a6aeea663d8a36efe0fbec7f566f",
65
+ "typesPublisherContentHash": "74bb15e3cd7609a58b139ec154306e41809363bbbb91262cb6122a9e414fa950",
66
66
  "typeScriptVersion": "4.3",
67
67
  "exports": {
68
68
  ".": {