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

x/valibot/src/schemas/file/index.ts>FileSchema

The modular and type safe schema library for validating structural data 🤖
Latest
interface FileSchema
implements BaseSchema<File, File, FileIssue>
import { type FileSchema } from "https://deno.land/x/valibot@v1.0.0-beta.5/src/schemas/file/index.ts";

File schema type.

Type Parameters

TMessage extends ErrorMessage<FileIssue> | undefined

Properties

readonly
type: "file"

The schema type.

readonly
reference: file

The schema reference.

readonly
expects: "File"

The expected property.

readonly
message: TMessage

The error message.