@types/react 16.14.51 → 16.14.53
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 +22 -22
- react v16.14/package.json +3 -3
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, 12 Dec 2023 22:35:35 GMT
|
12
12
|
* Dependencies: [@types/prop-types](https://npmjs.com/package/@types/prop-types), [@types/scheduler](https://npmjs.com/package/@types/scheduler), [csstype](https://npmjs.com/package/csstype)
|
13
13
|
|
14
14
|
# Credits
|
react v16.14/index.d.ts
CHANGED
@@ -145,7 +145,7 @@ declare namespace React {
|
|
145
145
|
}
|
146
146
|
|
147
147
|
// ReactHTML for ReactHTMLElement
|
148
|
-
//
|
148
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
149
149
|
interface ReactHTMLElement<T extends HTMLElement> extends DetailedReactHTMLElement<AllHTMLAttributes<T>, T> {}
|
150
150
|
|
151
151
|
interface DetailedReactHTMLElement<P extends HTMLAttributes<T>, T extends HTMLElement> extends DOMElement<P, T> {
|
@@ -190,7 +190,7 @@ declare namespace React {
|
|
190
190
|
...children: ReactNode[]
|
191
191
|
) => DOMElement<P, T>;
|
192
192
|
|
193
|
-
//
|
193
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
194
194
|
interface HTMLFactory<T extends HTMLElement> extends DetailedHTMLFactory<AllHTMLAttributes<T>, T> {}
|
195
195
|
|
196
196
|
interface DetailedHTMLFactory<P extends HTMLAttributes<T>, T extends HTMLElement> extends DOMFactory<P, T> {
|
@@ -428,7 +428,7 @@ declare namespace React {
|
|
428
428
|
type ReactInstance = Component<any> | Element;
|
429
429
|
|
430
430
|
// Base component for plain JS classes
|
431
|
-
//
|
431
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
432
432
|
interface Component<P = {}, S = {}, SS = any> extends ComponentLifecycle<P, S, SS> {}
|
433
433
|
class Component<P, S> {
|
434
434
|
// tslint won't let me format the sample code in a way that vscode likes it :(
|
@@ -893,7 +893,7 @@ declare namespace React {
|
|
893
893
|
type ReducerStateWithoutAction<R extends ReducerWithoutAction<any>> = R extends ReducerWithoutAction<infer S> ? S
|
894
894
|
: never;
|
895
895
|
// TODO (TypeScript 3.0): ReadonlyArray<unknown>
|
896
|
-
type DependencyList =
|
896
|
+
type DependencyList = readonly any[];
|
897
897
|
|
898
898
|
// NOTE: callbacks are _only_ allowed to return either void, or a destructor.
|
899
899
|
type EffectCallback = () => void | Destructor;
|
@@ -1184,7 +1184,7 @@ declare namespace React {
|
|
1184
1184
|
target: EventTarget & Target;
|
1185
1185
|
}
|
1186
1186
|
|
1187
|
-
//
|
1187
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
1188
1188
|
interface FormEvent<T = Element> extends SyntheticEvent<T> {
|
1189
1189
|
}
|
1190
1190
|
|
@@ -1555,7 +1555,7 @@ declare namespace React {
|
|
1555
1555
|
onTransitionEndCapture?: TransitionEventHandler<T> | undefined;
|
1556
1556
|
}
|
1557
1557
|
|
1558
|
-
export interface CSSProperties extends CSS.Properties<string | number> {
|
1558
|
+
export interface CSSProperties extends CSS.Properties<(string & {}) | number> {
|
1559
1559
|
/**
|
1560
1560
|
* The index signature was removed to enable closed typing for style
|
1561
1561
|
* using CSSType. You're able to use type assertion or module augmentation
|
@@ -1841,7 +1841,7 @@ declare namespace React {
|
|
1841
1841
|
interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
|
1842
1842
|
// React-specific Attributes
|
1843
1843
|
defaultChecked?: boolean | undefined;
|
1844
|
-
defaultValue?: string | number |
|
1844
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
1845
1845
|
suppressContentEditableWarning?: boolean | undefined;
|
1846
1846
|
suppressHydrationWarning?: boolean | undefined;
|
1847
1847
|
|
@@ -2011,7 +2011,7 @@ declare namespace React {
|
|
2011
2011
|
target?: string | undefined;
|
2012
2012
|
type?: string | undefined;
|
2013
2013
|
useMap?: string | undefined;
|
2014
|
-
value?: string |
|
2014
|
+
value?: string | readonly string[] | number | undefined;
|
2015
2015
|
width?: number | string | undefined;
|
2016
2016
|
wmode?: string | undefined;
|
2017
2017
|
wrap?: string | undefined;
|
@@ -2046,7 +2046,7 @@ declare namespace React {
|
|
2046
2046
|
referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
|
2047
2047
|
}
|
2048
2048
|
|
2049
|
-
//
|
2049
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
2050
2050
|
interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {}
|
2051
2051
|
|
2052
2052
|
interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
|
@@ -2080,7 +2080,7 @@ declare namespace React {
|
|
2080
2080
|
formTarget?: string | undefined;
|
2081
2081
|
name?: string | undefined;
|
2082
2082
|
type?: "submit" | "reset" | "button" | undefined;
|
2083
|
-
value?: string |
|
2083
|
+
value?: string | readonly string[] | number | undefined;
|
2084
2084
|
}
|
2085
2085
|
|
2086
2086
|
interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
|
@@ -2098,7 +2098,7 @@ declare namespace React {
|
|
2098
2098
|
}
|
2099
2099
|
|
2100
2100
|
interface DataHTMLAttributes<T> extends HTMLAttributes<T> {
|
2101
|
-
value?: string |
|
2101
|
+
value?: string | readonly string[] | number | undefined;
|
2102
2102
|
}
|
2103
2103
|
|
2104
2104
|
interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
|
@@ -2241,7 +2241,7 @@ declare namespace React {
|
|
2241
2241
|
src?: string | undefined;
|
2242
2242
|
step?: number | string | undefined;
|
2243
2243
|
type?: HTMLInputTypeAttribute | undefined;
|
2244
|
-
value?: string |
|
2244
|
+
value?: string | readonly string[] | number | undefined;
|
2245
2245
|
width?: number | string | undefined;
|
2246
2246
|
|
2247
2247
|
onChange?: ChangeEventHandler<T> | undefined;
|
@@ -2262,7 +2262,7 @@ declare namespace React {
|
|
2262
2262
|
}
|
2263
2263
|
|
2264
2264
|
interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
2265
|
-
value?: string |
|
2265
|
+
value?: string | readonly string[] | number | undefined;
|
2266
2266
|
}
|
2267
2267
|
|
2268
2268
|
interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
@@ -2315,7 +2315,7 @@ declare namespace React {
|
|
2315
2315
|
max?: number | string | undefined;
|
2316
2316
|
min?: number | string | undefined;
|
2317
2317
|
optimum?: number | undefined;
|
2318
|
-
value?: string |
|
2318
|
+
value?: string | readonly string[] | number | undefined;
|
2319
2319
|
}
|
2320
2320
|
|
2321
2321
|
interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
@@ -2349,7 +2349,7 @@ declare namespace React {
|
|
2349
2349
|
disabled?: boolean | undefined;
|
2350
2350
|
label?: string | undefined;
|
2351
2351
|
selected?: boolean | undefined;
|
2352
|
-
value?: string |
|
2352
|
+
value?: string | readonly string[] | number | undefined;
|
2353
2353
|
}
|
2354
2354
|
|
2355
2355
|
interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
@@ -2360,12 +2360,12 @@ declare namespace React {
|
|
2360
2360
|
|
2361
2361
|
interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
2362
2362
|
name?: string | undefined;
|
2363
|
-
value?: string |
|
2363
|
+
value?: string | readonly string[] | number | undefined;
|
2364
2364
|
}
|
2365
2365
|
|
2366
2366
|
interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
|
2367
2367
|
max?: number | string | undefined;
|
2368
|
-
value?: string |
|
2368
|
+
value?: string | readonly string[] | number | undefined;
|
2369
2369
|
}
|
2370
2370
|
|
2371
2371
|
interface SlotHTMLAttributes<T> extends HTMLAttributes<T> {
|
@@ -2393,7 +2393,7 @@ declare namespace React {
|
|
2393
2393
|
name?: string | undefined;
|
2394
2394
|
required?: boolean | undefined;
|
2395
2395
|
size?: number | undefined;
|
2396
|
-
value?: string |
|
2396
|
+
value?: string | readonly string[] | number | undefined;
|
2397
2397
|
onChange?: ChangeEventHandler<T> | undefined;
|
2398
2398
|
}
|
2399
2399
|
|
@@ -2433,7 +2433,7 @@ declare namespace React {
|
|
2433
2433
|
readOnly?: boolean | undefined;
|
2434
2434
|
required?: boolean | undefined;
|
2435
2435
|
rows?: number | undefined;
|
2436
|
-
value?: string |
|
2436
|
+
value?: string | readonly string[] | number | undefined;
|
2437
2437
|
wrap?: string | undefined;
|
2438
2438
|
|
2439
2439
|
onChange?: ChangeEventHandler<T> | undefined;
|
@@ -3122,7 +3122,7 @@ declare global {
|
|
3122
3122
|
* @deprecated Use `React.JSX` instead of the global `JSX` namespace.
|
3123
3123
|
*/
|
3124
3124
|
namespace JSX {
|
3125
|
-
//
|
3125
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
3126
3126
|
interface Element extends React.ReactElement<any, any> {}
|
3127
3127
|
interface ElementClass extends React.Component<any> {
|
3128
3128
|
render(): React.ReactNode;
|
@@ -3143,9 +3143,9 @@ declare global {
|
|
3143
3143
|
: ReactManagedAttributes<T, P>
|
3144
3144
|
: ReactManagedAttributes<C, P>;
|
3145
3145
|
|
3146
|
-
//
|
3146
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
3147
3147
|
interface IntrinsicAttributes extends React.Attributes {}
|
3148
|
-
//
|
3148
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
3149
3149
|
interface IntrinsicClassAttributes<T> extends React.ClassAttributes<T> {}
|
3150
3150
|
|
3151
3151
|
interface IntrinsicElements {
|
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.53",
|
4
4
|
"description": "TypeScript definitions for react",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -164,6 +164,6 @@
|
|
164
164
|
"@types/scheduler": "*",
|
165
165
|
"csstype": "^3.0.2"
|
166
166
|
},
|
167
|
-
"typesPublisherContentHash": "
|
168
|
-
"typeScriptVersion": "4.
|
167
|
+
"typesPublisherContentHash": "5b006b5c6712b5f8ce6bc35325742647d53477cf2fc80efa407cb2aff5fa8a40",
|
168
|
+
"typeScriptVersion": "4.6"
|
169
169
|
}
|