generated at
ValibotのSchema




基本
any
bigint
boolean
never
number
symbol
string
unknown
literal
nan
void
function
promise

optional系
この辺のやつは、他のschemaと異なりdefault値を取れるらしい
ts
v.optional(v.string(), "I'm the default!");
エラーメッセージとちょっと紛らわしいmrsekut
undefined
undefinedable
null
nullable
nonNullable
nullish
nonNullish
optional
nonOptional

object系
looseObject
未知のpropertyを許容する
strictObject
objectWithRest
valibot.forwardでproperty同士の関係の検証もできる
record
Record<string, number> みたいなやつ

arrayとtuple
array
tuple
tupleWithRest
strictTuple
looseTuple

ORぽいやつ
enum
ANDぽいやつ
intersect

instance系
instance
map
set
blob
date
file

再帰できる