@types/prop-types
Advanced tools
Comparing version 15.7.0 to 15.7.1
@@ -68,3 +68,3 @@ // Type definitions for prop-types 15.7 | ||
export function instanceOf<T>(expectedClass: new (...args: any[]) => T): Requireable<T>; | ||
export function oneOf<T>(types: T[]): Requireable<T>; | ||
export function oneOf<T>(types: ReadonlyArray<T>): Requireable<T>; | ||
export function oneOfType<T extends Validator<any>>(types: T[]): Requireable<NonNullable<InferType<T>>>; | ||
@@ -83,4 +83,4 @@ export function arrayOf<T>(type: Validator<T>): Requireable<T[]>; | ||
* @param location e.g. "prop", "context", "child context" | ||
* @param componentName Name of the component for error messages. | ||
* @param getStack Returns the component stack. | ||
* @param componentName Name of the component for error messages | ||
* @param getStack Returns the component stack | ||
*/ | ||
@@ -87,0 +87,0 @@ export function checkPropTypes(typeSpecs: any, values: any, location: string, componentName: string, getStack?: () => any): void; |
{ | ||
"name": "@types/prop-types", | ||
"version": "15.7.0", | ||
"version": "15.7.1", | ||
"description": "TypeScript definitions for prop-types", | ||
@@ -32,4 +32,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "d0bb07ae0d773e408a2e31cda2cf60182a872489d2130e262dde73ee394fbcb2", | ||
"typesPublisherContentHash": "428a2d0735bad0c54710672c573a150461a21fe06b7729a430a049a288c5d991", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Thu, 28 Feb 2019 02:53:53 GMT | ||
* Last updated: Wed, 17 Apr 2019 21:01:19 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
6488