banditypes icon indicating copy to clipboard operation
banditypes copied to clipboard

🤠🧨 The mighty 400-byte schema validator for TS / JS

Results 2 banditypes issues
Sort by recently updated
recently updated
newest added

Given the following snippet : ```ts const person = object({ name: string().or(() => 'john'), age: number(), }); type Person = Infer; ``` Here `Person` is : ```ts type Person =...

When using TS-first collection schemas, the field validations can be stricter than the type passed: ```ts array(enums(['s'])) array(object({ key: string(), extra: string() })) object({ key: enums(['s']) }) ``` This never...