A simple and composable way to validate data in JavaScript (and TypeScript).
A simple and composable way to validate data in JavaScript (and TypeScript).
Security hardening: validate()/assert()/is() return the live object → read-unstable properties (getters/Proxy) can bypass validation
Native Typescript enum support
[v1.0.3] Failed to parse source map from 'xxx/node_modules/superstruct/src/struct.ts' (ENOENT: no such file or directory)
Dynamic type fails when used inside "partial" helper
pattern (regex) does not return consistent output when using the global modifier
Immer compatibility
Standard Schema support
array() and tuple() only define mutable Arrays, not ReadonlyArray
Defaulted is not coerced through validate
Refinement to limit the number of keys on a `record`