@thexjs/env 1.1.1 → 1.1.2
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 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,6 +49,7 @@ Environment validation failed:
|
|
|
49
49
|
| `url()` | any string parseable by `new URL(...)` | |
|
|
50
50
|
|
|
51
51
|
Built-in validators also expose two chaining combinators:
|
|
52
|
+
|
|
52
53
|
- `.optional()` — a missing variable becomes `undefined` instead of failing;
|
|
53
54
|
a present-but-invalid value still throws. `num().optional()` is typed
|
|
54
55
|
`number | undefined`.
|