From ecad1a35ba69cc64f6cb7dec5886f6d33888b516 Mon Sep 17 00:00:00 2001 From: Caleb Chase Date: Mon, 7 Dec 2020 10:42:47 -0600 Subject: [PATCH] feat: add additional functions to Lazy class (#1148) * Add additional functions to Lazy class * Remove Lazy.isType May not work due to lack of options argument - see PR #1148. --- src/Lazy.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Lazy.ts b/src/Lazy.ts index 8aaad37ae..f49cb741f 100644 --- a/src/Lazy.ts +++ b/src/Lazy.ts @@ -82,6 +82,13 @@ class Lazy> describe() { return null as any; } + + isValid(value: any, options?: ValidateOptions) { + return this._resolve(value, options).isValid(value, options); + } + isValidSync(value: any, options?: ValidateOptions) { + return this._resolve(value, options).isValidSync(value, options); + } } export default Lazy;