import { tupleAsync } from "https://deno.land/x/valibot@v1.0.0-beta.4/src/schemas/tuple/tupleAsync.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.