Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/src/schemas/objectWithRest/objectWithRest.ts>ObjectWithRestSchema

The modular and type safe schema library for validating structural data 🤖
Go to Latest
interface ObjectWithRestSchema
import { type ObjectWithRestSchema } from "https://deno.land/x/valibot@v0.2.0-to-json-schema/src/schemas/objectWithRest/objectWithRest.ts";

Object with rest schema type.

Type Parameters

TEntries extends ObjectEntries
TRest extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TMessage extends ErrorMessage<ObjectWithRestIssue> | undefined

Properties

readonly
type: "object_with_rest"

The schema type.

readonly
reference: objectWithRest

The schema reference.

readonly
expects: "Object"

The expected property.

readonly
entries: TEntries

The entries schema.

readonly
rest: TRest

The rest schema.

readonly
message: TMessage

The error message.