@infra-blocks/zod-utils 0.20.0-alpha.0 → 0.20.0-alpha.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 +0 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -373,11 +373,6 @@ if (isMin5String(myString)) {
|
|
|
373
373
|
}
|
|
374
374
|
```
|
|
375
375
|
|
|
376
|
-
It can still be used with vanilla types, but then the guarantees returned by a type guard are
|
|
377
|
-
not as strong. In our specific case, the type guard would assert that `myString` is a `string`,
|
|
378
|
-
despite the fact that it also checked that its length has to be greater than 5. That information
|
|
379
|
-
has been lost.
|
|
380
|
-
|
|
381
376
|
### Is Valid
|
|
382
377
|
|
|
383
378
|
The `isValid` API is very similar to the [type guard](#type-guard) one, except it doesn't bind
|