import { objectAsync } from "https://deno.land/x/valibot@v1.0.0-beta.4/src/schemas/index.ts";
Creates an object schema.
Hint: This schema removes unknown entries. The output will only include the
entries you specify. To include unknown entries, use looseObjectAsync
. To
return an issue for unknown entries, use strictObjectAsync
. To include and
validate unknown entries, use objectWithRestAsync
.
Type Parameters
TEntries extends ObjectEntriesAsync
Parameters
entries: TEntries
The entries schema.
Returns
ObjectSchemaAsync<TEntries, undefined>
An object schema.
Creates an object schema.
Hint: This schema removes unknown entries. The output will only include the
entries you specify. To include unknown entries, use looseObjectAsync
. To
return an issue for unknown entries, use strictObjectAsync
. To include and
validate unknown entries, use objectWithRestAsync
.
Type Parameters
TEntries extends ObjectEntriesAsync
TMessage extends ErrorMessage<ObjectIssue> | undefined
Returns
An object schema.