@types/prop-types
Advanced tools
Comparing version 15.7.11 to 15.7.12
@@ -53,2 +53,13 @@ export type ReactComponentLike = | ||
/** | ||
* Like {@link ValidationMap} but treats `undefined`, `null` and optional properties the same. | ||
* This type is only added as a migration path in React 19 where this type was removed from React. | ||
* Runtime and compile time types would mismatch since you could see `undefined` at runtime when your types don't expect this type. | ||
*/ | ||
export type WeakValidationMap<T> = { | ||
[K in keyof T]?: null extends T[K] ? Validator<T[K] | null | undefined> | ||
: undefined extends T[K] ? Validator<T[K] | null | undefined> | ||
: Validator<T[K]>; | ||
}; | ||
export type InferType<V> = V extends Validator<infer T> ? T : any; | ||
@@ -55,0 +66,0 @@ export type InferProps<V> = |
{ | ||
"name": "@types/prop-types", | ||
"version": "15.7.11", | ||
"version": "15.7.12", | ||
"description": "TypeScript definitions for prop-types", | ||
@@ -33,4 +33,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/prop-types", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "a098c8938982c7e7bc31f162c77bc407178535e98c85370e3b456598ee52e7c0", | ||
"typeScriptVersion": "4.5" | ||
"typesPublisherContentHash": "9f43a310cba2ddc63b5ca98d9cce503eaead853f72f038eb5c29c623dc2c01b6", | ||
"typeScriptVersion": "4.7" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 20 Nov 2023 23:36:24 GMT | ||
* Last updated: Fri, 22 Mar 2024 18:07:25 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6709
95