Skip to main content
Home
Works with
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score100%
Downloads2/wk
Publisheda week ago (0.4.0)

a just-in-time function compilation-based typescript data validation library

T
AnySchema
No documentation available
f
array

an array

I
ArraySchema

represents an array whose contents are represented by Subschema

v
boolean

a boolean

T
BooleanSchema

represents a boolean

f
custom

a custom check, gated by a type guard function

I
CustomSchema

represents a value gated by a custom check

f
discriminatedUnion

a discriminated union of object values.

I
DiscriminatedUnionSchema

represents a discriminated union of object types

N
equality
No documentation available
f
equality.compile
No documentation available
T
equality.EqualityFunction
No documentation available
T
Infer
No documentation available
f
literal

a literal value

I
LiteralSchema

represents a compile-time-known literal value

v
null

the literal null

v
number

a number

T
NumberSchema

represents a number

f
obj

an object value.

I
ObjectSchema

represents an object of some known shape

f
optional

an optional value.

I
OptionalSchema

represents a value which may be undefined (or not provided at all, e.g. in an object), but is otherwise represented by Subschema

v
string

a string

T
StringSchema

represents a string

f
tuple

a tuple value

I
TupleSchema

represents a tuple whose contents are represented by individual subschemas

v
undefined

the literal undefined

v
underlyingType
No documentation available
f
union

a union value.

I
UnionSchema

represents a union type, whose constituent types are defined by Subschemas

v
unknown

an unknown value

T
UnknownSchema

represents an unknown value

N
validation
No documentation available
f
validation.compile

compile a validation function from a given schema. returns a SchemaValidator

T
validation.SchemaValidator

a schema validation function

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.