@types/yup
Advanced tools
Comparing version 0.23.0 to 0.23.1
@@ -8,3 +8,3 @@ // Type definitions for yup 0.23 | ||
export function reach(schema: Schema, path: string, value?: any, context?: any): Schema; | ||
export function addMethod(schemaType: Schema, name: string, method: (this: Schema) => Schema): void; | ||
export function addMethod<T extends Schema>(schemaCtor: AnySchemaConstructor, name: string, method: (this: T, ...args: any[]) => T): void; | ||
export function ref(path: string, options?: { contextPrefix: string }): Ref; | ||
@@ -23,2 +23,10 @@ export function lazy(fn: (value: any) => Schema): Lazy; | ||
export type AnySchemaConstructor = MixedSchemaConstructor | ||
| StringSchemaConstructor | ||
| NumberSchemaConstructor | ||
| BooleanSchemaConstructor | ||
| DateSchemaConstructor | ||
| ArraySchemaConstructor | ||
| ObjectSchemaConstructor; | ||
export interface Schema { | ||
@@ -25,0 +33,0 @@ clone(): this; |
{ | ||
"name": "@types/yup", | ||
"version": "0.23.0", | ||
"version": "0.23.1", | ||
"description": "TypeScript definitions for yup", | ||
@@ -25,4 +25,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "7e33650de729135ec09a89bbc98eb205768156f816f725b5f672d2495566043a", | ||
"typesPublisherContentHash": "a1dc1beb51bd79dc75fe52b05180b846bd82cf9b7c17807474917c7a3a5e1763", | ||
"typeScriptVersion": "2.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 11 Dec 2017 19:14:19 GMT | ||
* Last updated: Mon, 08 Jan 2018 22:23:44 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
10039
210