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

x/valibot/mod.ts>FunctionSchema

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
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.2-to-json-schema/mod.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.