Search


Search something to see results

unhoax

Guide

1. Getting Started
2. Intersect, pick & omit
3a. Custom Type – Email
3b. Custom Type – First Name
4. Migrating from Zod/Yup
5. Why yet-another schema library ?

Schema

(F)array
(V)bigint
(V)boolean
(V)coerceNumber
(V)date
(F)Enum
(F)fallback
(F)instanceOf
(V)integer
(F)lazy
(F)literal
(F)Map
(V)number
(F)object
(F)record
(F)recover
(F)Set
(V)string
(V)symbol
(F)tuple
(F)union
(V)unknown
(F)variant

Schema Factory

(F)fromGuard

Unsafe Schema

(V)unsafeInteger
(V)unsafeNumber
(V)untrimmedString

Refinement

(F)between
(V)guardAs
(F)max
(F)min
(F)nonEmpty
(F)pattern
(F)refine
(F)size

Modifier

(F)map
(V)nil
(V)nullable
(V)optional
(F)or
(F)partial

Parsing

(T)ParseError
(T)ParseIssue
(T)ParseResult
(F)unsafeParse

Schema Definition

(I)ArraySchema
(T)InputOf
(I)LiteralSchema
(I)MapSchema
(I)ObjectSchema
(I)RecordSchema
(I)Schema
(I)SetSchema
(I)TupleSchema
(T)TypeOf
(I)UnionSchema

Advanced Usage / Core

(F)coerce
(F)createParseContext
(F)failure
(F)flatMap
(I)ParseContext
(F)success