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

x/valibot/src/schemas/index.ts>FunctionSchema

The modular and type safe schema library for validating structural data 🤖
Go to Latest
interface FunctionSchema
implements BaseSchema<(...args: unknown[]) => unknown, (...args: unknown[]) => unknown, FunctionIssue>
import { type FunctionSchema } from "https://deno.land/x/valibot@v1.0.0-beta.4/src/schemas/index.ts";

Function schema type.

Type Parameters

TMessage extends ErrorMessage<FunctionIssue> | undefined

Properties

readonly
type: "function"

The schema type.

readonly
reference: function_

The schema reference.

readonly
expects: "Function"

The expected property.

readonly
message: TMessage

The error message.