@domain-first/types 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -110,7 +110,7 @@ class NonEmptyString extends domainType(z.string().nonempty()) {}
|
|
|
110
110
|
try {
|
|
111
111
|
const _string = new NonEmptyString("");
|
|
112
112
|
} catch (e: unknown) {
|
|
113
|
-
if (e instanceof
|
|
113
|
+
if (e instanceof TypeParsingError) {
|
|
114
114
|
console.error(e.details.parsingIssues);
|
|
115
115
|
console.error(e.details.value);
|
|
116
116
|
}
|