@types/react 17.0.69 → 17.0.71
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 +1 -1
- react v17.0/index.d.ts +15 -15
- react v17.0/package.json +2 -2
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:
|
11
|
+
* Last updated: Mon, 20 Nov 2023 23:36:24 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 v17.0/index.d.ts
CHANGED
@@ -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;
|
@@ -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;
|
@@ -2079,7 +2079,7 @@ declare namespace React {
|
|
2079
2079
|
formTarget?: string | undefined;
|
2080
2080
|
name?: string | undefined;
|
2081
2081
|
type?: "submit" | "reset" | "button" | undefined;
|
2082
|
-
value?: string |
|
2082
|
+
value?: string | readonly string[] | number | undefined;
|
2083
2083
|
}
|
2084
2084
|
|
2085
2085
|
interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
|
@@ -2097,7 +2097,7 @@ declare namespace React {
|
|
2097
2097
|
}
|
2098
2098
|
|
2099
2099
|
interface DataHTMLAttributes<T> extends HTMLAttributes<T> {
|
2100
|
-
value?: string |
|
2100
|
+
value?: string | readonly string[] | number | undefined;
|
2101
2101
|
}
|
2102
2102
|
|
2103
2103
|
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;
|
@@ -3014,10 +3014,10 @@ declare namespace React {
|
|
3014
3014
|
|
3015
3015
|
interface ReactChildren {
|
3016
3016
|
map<T, C>(
|
3017
|
-
children: C |
|
3017
|
+
children: C | readonly C[],
|
3018
3018
|
fn: (child: C, index: number) => T,
|
3019
3019
|
): C extends null | undefined ? C : Array<Exclude<T, boolean | null | undefined>>;
|
3020
|
-
forEach<C>(children: C |
|
3020
|
+
forEach<C>(children: C | readonly C[], fn: (child: C, index: number) => void): void;
|
3021
3021
|
count(children: any): number;
|
3022
3022
|
only<C>(children: C): C extends any[] ? never : C;
|
3023
3023
|
toArray(children: ReactNode | ReactNode[]): Array<Exclude<ReactNode, boolean | null | undefined>>;
|
react v17.0/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "17.0.
|
3
|
+
"version": "17.0.71",
|
4
4
|
"description": "TypeScript definitions for react",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -169,6 +169,6 @@
|
|
169
169
|
"@types/scheduler": "*",
|
170
170
|
"csstype": "^3.0.2"
|
171
171
|
},
|
172
|
-
"typesPublisherContentHash": "
|
172
|
+
"typesPublisherContentHash": "41b9c45e7c625fcba86f87e79adae1e6fd23a13dfe3d699c98c363f0888c4e15",
|
173
173
|
"typeScriptVersion": "4.5"
|
174
174
|
}
|