@types/react 16.14.44 → 16.14.46
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 +1 -1
- react v16.14/index.d.ts +8 -8
- react v16.14/package.json +2 -2
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,
|
11
|
+
* Last updated: Tue, 22 Aug 2023 18:04:38 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,12 +52,13 @@ 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.
|
58
59
|
type Destructor = () => void | { [UNDEFINED_VOID_ONLY]: never };
|
59
60
|
|
60
|
-
// eslint-disable-next-line export-just-namespace
|
61
|
+
// eslint-disable-next-line @definitelytyped/export-just-namespace
|
61
62
|
export = React;
|
62
63
|
export as namespace React;
|
63
64
|
|
@@ -1911,7 +1912,7 @@ declare namespace React {
|
|
1911
1912
|
colSpan?: number | undefined;
|
1912
1913
|
controls?: boolean | undefined;
|
1913
1914
|
coords?: string | undefined;
|
1914
|
-
crossOrigin?:
|
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?:
|
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?:
|
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?:
|
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?:
|
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?:
|
2489
|
+
crossOrigin?: CrossOrigin;
|
2490
2490
|
|
2491
2491
|
// SVG Specific attributes
|
2492
2492
|
accentHeight?: number | string | undefined;
|
react v16.14/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "16.14.
|
3
|
+
"version": "16.14.46",
|
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": "
|
149
|
+
"typesPublisherContentHash": "c377ae78d3267803de6f3b79fae72711e23f3b1c4e43761e1b2463dd9096202a",
|
150
150
|
"typeScriptVersion": "4.3",
|
151
151
|
"exports": {
|
152
152
|
".": {
|