@types/react 16.14.24 → 16.14.25
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 +4 -2
- react v16.14/package.json +2 -2
react v16.14/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for React (http://facebook.github.io/reac
|
|
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: Thu,
|
11
|
+
* Last updated: Thu, 14 Apr 2022 07:01:23 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
@@ -3050,6 +3050,8 @@ type MergePropTypes<P, T> =
|
|
3050
3050
|
& Pick<P, Exclude<keyof P, keyof T>>
|
3051
3051
|
: never;
|
3052
3052
|
|
3053
|
+
type InexactPartial<T> = { [K in keyof T]?: T[K] | undefined };
|
3054
|
+
|
3053
3055
|
// Any prop that has a default prop becomes optional, but its type is unchanged
|
3054
3056
|
// Undeclared default props are augmented into the resulting allowable attributes
|
3055
3057
|
// If declared props have indexed properties, ignore default props entirely as keyof gets widened
|
@@ -3057,8 +3059,8 @@ type MergePropTypes<P, T> =
|
|
3057
3059
|
type Defaultize<P, D> = P extends any
|
3058
3060
|
? string extends keyof P ? P :
|
3059
3061
|
& Pick<P, Exclude<keyof P, keyof D>>
|
3060
|
-
&
|
3061
|
-
&
|
3062
|
+
& InexactPartial<Pick<P, Extract<keyof P, keyof D>>>
|
3063
|
+
& InexactPartial<Pick<D, Exclude<keyof D, keyof P>>>
|
3062
3064
|
: never;
|
3063
3065
|
|
3064
3066
|
type ReactManagedAttributes<C, P> = C extends { propTypes: infer T; defaultProps: infer D; }
|
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.25",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -146,6 +146,6 @@
|
|
146
146
|
"@types/scheduler": "*",
|
147
147
|
"csstype": "^3.0.2"
|
148
148
|
},
|
149
|
-
"typesPublisherContentHash": "
|
149
|
+
"typesPublisherContentHash": "918da6a3d1987104bdd4cc436eadd7e2a98d5a2b4791ed9b200a239b09848834",
|
150
150
|
"typeScriptVersion": "3.9"
|
151
151
|
}
|