Comparing version 1.10.0 to 1.10.1
@@ -1210,3 +1210,3 @@ "use strict"; | ||
this.defaultValue = opts.defaultValue; | ||
this[coercionTypeSymbol] = this.defaultValue !== undefined; | ||
this[coercionTypeSymbol] = this.defaultValue !== undefined || this.coerceOpt !== undefined; | ||
} | ||
@@ -1213,0 +1213,0 @@ parse( |
{ | ||
"name": "myzod", | ||
"version": "1.10.0", | ||
"version": "1.10.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./libs/index.js", |
@@ -211,3 +211,3 @@ # myzod | ||
- pattern `RegExp` - regular expression string must match | ||
- valid `string[]` - list of valid stings | ||
- valid `string[]` - list of valid strings | ||
- predicate `Predicate<string>` - custom predicates to apply to string value | ||
@@ -245,3 +245,3 @@ | ||
if however you want the stings to be typed used the [literals](#literals) helper function: | ||
if however you want the strings to be typed used the [literals](#literals) helper function: | ||
@@ -248,0 +248,0 @@ ```typescript |
111937