import { tupleAsync } from "https://deno.land/x/valibot@v1.0.0-beta.5/src/schemas/tuple/index.ts";
Creates a tuple schema.
Hint: This schema removes unknown items. The output will only include the
items you specify. To include unknown items, use looseTupleAsync
. To
return an issue for unknown items, use strictTupleAsync
. To include and
validate unknown items, use tupleWithRestAsync
.
Parameters
items: TItems
The items schema.
Creates a tuple schema.
Hint: This schema removes unknown items. The output will only include the
items you specify. To include unknown items, use looseTupleAsync
. To
return an issue for unknown items, use strictTupleAsync
. To include and
validate unknown items, use tupleWithRestAsync
.