Comparing version 1.0.12-alpha to 1.0.13-alpha
@@ -261,6 +261,6 @@ "use strict"; | ||
if (props.required[k]) { | ||
isValid && (isValid = state.traverseKey(k, props.required[k])); | ||
isValid = state.traverseKey(k, props.required[k]) && isValid; | ||
delete remainingUnseenRequired[k]; | ||
} else if (props.optional[k]) { | ||
isValid && (isValid = state.traverseKey(k, props.optional[k])); | ||
isValid = state.traverseKey(k, props.optional[k]) && isValid; | ||
} else if (kind === "distilledProps") { | ||
@@ -267,0 +267,0 @@ if (state.failFast) { |
@@ -244,6 +244,6 @@ function _checkPrivateRedeclaration(obj, privateCollection) { | ||
if (props.required[k]) { | ||
isValid && (isValid = state.traverseKey(k, props.required[k])); | ||
isValid = state.traverseKey(k, props.required[k]) && isValid; | ||
delete remainingUnseenRequired[k]; | ||
} else if (props.optional[k]) { | ||
isValid && (isValid = state.traverseKey(k, props.optional[k])); | ||
isValid = state.traverseKey(k, props.optional[k]) && isValid; | ||
} else if (kind === "distilledProps") { | ||
@@ -250,0 +250,0 @@ if (state.failFast) { |
{ | ||
"name": "arktype", | ||
"description": "TypeScript's 1:1 validator, optimized from editor to runtime", | ||
"version": "1.0.12-alpha", | ||
"version": "1.0.13-alpha", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "David Blass", |
Sorry, the diff of this file is not supported yet
490241