A typesafe validation & parsing library for TypeScript.
Add .nullable()
(thanks to @dimatakoy!)
See the README.md for usage examples.
"moduleResolution": "bundler"
setting (thanks to @jukkakoskinen for reporting the problem!).parse
and .try
methods anymore. To create a standalone parser that accepts e.g. either a string or undefined
, then v.union(v.string(), v.undefined())
is the recommended way for that.