Comparing version 0.32.3 to 0.32.4
@@ -0,1 +1,17 @@ | ||
## [0.32.4](https://github.com/jquense/yup/compare/v0.32.3...v0.32.4) (2020-12-07) | ||
### Bug Fixes | ||
* **types:** rm base pick/omit types as they conflict with more specific ones ([14e2c8c](https://github.com/jquense/yup/commit/14e2c8c)) | ||
### Features | ||
* add additional functions to Lazy class ([#1148](https://github.com/jquense/yup/issues/1148)) ([ecad1a3](https://github.com/jquense/yup/commit/ecad1a3)) | ||
## [0.32.3](https://github.com/jquense/yup/compare/v0.32.2...v0.32.3) (2020-12-07) | ||
@@ -2,0 +18,0 @@ |
@@ -25,3 +25,5 @@ import type { Callback, ValidateOptions } from './types'; | ||
describe(): any; | ||
isValid(value: any, options?: ValidateOptions<TContext>): Promise<boolean>; | ||
isValidSync(value: any, options?: ValidateOptions<TContext>): boolean; | ||
} | ||
export default Lazy; |
@@ -49,4 +49,12 @@ import isSchema from './util/isSchema'; | ||
isValid(value, options) { | ||
return this._resolve(value, options).isValid(value, options); | ||
} | ||
isValidSync(value, options) { | ||
return this._resolve(value, options).isValidSync(value, options); | ||
} | ||
} | ||
export default Lazy; |
@@ -42,4 +42,4 @@ import { MixedLocale } from './locale'; | ||
shape<TNextShape extends ObjectShape>(additions: TNextShape, excludes?: [string, string][]): ObjectSchema<Assign<TShape, TNextShape>, TContext, TypeOfShape<Assign<TShape, TNextShape>> | Optionals<TIn>>; | ||
pick<TKey extends keyof TShape>(keys: TKey[]): ObjectSchema<Pick<TShape, TKey>, TContext, TypeOfShape<Pick<TShape, TKey>> | Optionals<TIn>, AssertsShape<Pick<TShape, TKey>> | Optionals<TOut>>; | ||
omit<TKey extends keyof TShape>(keys: TKey[]): ObjectSchema<Omit<TShape, TKey>, TContext, TypeOfShape<Omit<TShape, TKey>> | Optionals<TIn>, AssertsShape<Omit<TShape, TKey>> | Optionals<TOut>>; | ||
pick(keys: string[]): any; | ||
omit(keys: string[]): any; | ||
from(from: string, to: keyof TShape, alias?: boolean): this; | ||
@@ -46,0 +46,0 @@ noUnknown(noAllow?: boolean, message?: import("./types").Message<{}>): this; |
@@ -25,3 +25,5 @@ import type { Callback, ValidateOptions } from './types'; | ||
describe(): any; | ||
isValid(value: any, options?: ValidateOptions<TContext>): Promise<boolean>; | ||
isValidSync(value: any, options?: ValidateOptions<TContext>): boolean; | ||
} | ||
export default Lazy; |
@@ -60,2 +60,10 @@ "use strict"; | ||
isValid(value, options) { | ||
return this._resolve(value, options).isValid(value, options); | ||
} | ||
isValidSync(value, options) { | ||
return this._resolve(value, options).isValidSync(value, options); | ||
} | ||
} | ||
@@ -62,0 +70,0 @@ |
@@ -42,4 +42,4 @@ import { MixedLocale } from './locale'; | ||
shape<TNextShape extends ObjectShape>(additions: TNextShape, excludes?: [string, string][]): ObjectSchema<Assign<TShape, TNextShape>, TContext, TypeOfShape<Assign<TShape, TNextShape>> | Optionals<TIn>>; | ||
pick<TKey extends keyof TShape>(keys: TKey[]): ObjectSchema<Pick<TShape, TKey>, TContext, TypeOfShape<Pick<TShape, TKey>> | Optionals<TIn>, AssertsShape<Pick<TShape, TKey>> | Optionals<TOut>>; | ||
omit<TKey extends keyof TShape>(keys: TKey[]): ObjectSchema<Omit<TShape, TKey>, TContext, TypeOfShape<Omit<TShape, TKey>> | Optionals<TIn>, AssertsShape<Omit<TShape, TKey>> | Optionals<TOut>>; | ||
pick(keys: string[]): any; | ||
omit(keys: string[]): any; | ||
from(from: string, to: keyof TShape, alias?: boolean): this; | ||
@@ -46,0 +46,0 @@ noUnknown(noAllow?: boolean, message?: import("./types").Message<{}>): this; |
{ | ||
"name": "yup", | ||
"version": "0.32.3", | ||
"version": "0.32.4", | ||
"description": "Dead simple Object schema validation", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
309602
5973