import { tupleAsync } from "https://deno.land/x/valibot@v0.35.0/src/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
.
Type Parameters
TItems extends TupleItemsAsync
Parameters
items: TItems
The items schema.
Returns
TupleSchemaAsync<TItems, undefined>
A tuple 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
.
Type Parameters
TItems extends TupleItemsAsync
TMessage extends ErrorMessage<TupleIssue> | undefined
Returns
A tuple schema.