@types/prop-types
Advanced tools
Comparing version 15.5.6 to 15.5.7
@@ -44,8 +44,8 @@ // Type definitions for prop-types 15.5 | ||
export type ValidationMap<T> = { [K in keyof T]-?: Validator<T[K]> }; | ||
export type ValidationMap<T> = { [K in keyof T]?: Validator<T[K]> }; | ||
export type InferType<V> = V extends Validator<infer T> ? T : any; | ||
export type InferProps<V> = | ||
& InferPropsInner<Pick<V, RequiredKeys<V>>> | ||
& Partial<InferPropsInner<Pick<V, OptionalKeys<V>>>>; | ||
& (RequiredKeys<V> extends undefined ? {} : InferPropsInner<Pick<V, RequiredKeys<V>>>) | ||
& (OptionalKeys<V> extends undefined ? {} : Partial<InferPropsInner<Pick<V, OptionalKeys<V>>>>); | ||
@@ -52,0 +52,0 @@ export const any: Requireable<any>; |
{ | ||
"name": "@types/prop-types", | ||
"version": "15.5.6", | ||
"version": "15.5.7", | ||
"description": "TypeScript definitions for prop-types", | ||
@@ -19,2 +19,3 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index", | ||
"repository": { | ||
@@ -26,4 +27,4 @@ "type": "git", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "830e6e1be7605334d7aa7ee8c4d1efaa522dee8d8c84dedbce93572e216f9ae8", | ||
"typesPublisherContentHash": "a4bc5d33236effcfdbed1befbe90ef45317b1586b55897fd7e33369660888533", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Thu, 27 Sep 2018 12:34:22 GMT | ||
* Last updated: Fri, 07 Dec 2018 21:50:02 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
5957