Comparing version 1.0.0-pre-10 to 1.0.0-pre-12
@@ -57,2 +57,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}, | ||
get isSuccess() { | ||
return !this.hasError && !this.hasWarning; | ||
}, | ||
get path() { | ||
@@ -59,0 +62,0 @@ return ((_parent === null || _parent === void 0 ? void 0 : _parent.path) ? _parent.path + '.' : '') + (field ? String(field) : ''); |
@@ -38,2 +38,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}, | ||
get isSuccess() { | ||
return !this.hasError && !this.hasWarning; | ||
}, | ||
validate() { | ||
@@ -40,0 +43,0 @@ return __awaiter(this, void 0, void 0, function* () { |
@@ -55,7 +55,8 @@ export type DryvValidateFunctionResult = DryvFieldValidationResult | string | null | undefined | Promise<DryvFieldValidationResult | string | null | undefined>; | ||
type?: DryvValidationResultType | null; | ||
value: TValue | undefined; | ||
parent: DryvValidatable | undefined; | ||
field: keyof TModel | undefined; | ||
value?: TValue | undefined; | ||
parent?: DryvValidatable | undefined; | ||
field?: keyof TModel | undefined; | ||
get hasError(): boolean; | ||
get hasWarning(): boolean; | ||
get isSuccess(): boolean; | ||
validate(): Promise<DryvValidationResult<TModel>>; | ||
@@ -62,0 +63,0 @@ clear(): void; |
{ | ||
"name": "dryvjs", | ||
"version": "1.0.0-pre-10", | ||
"version": "1.0.0-pre-12", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
60443
826