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

x/valibot/src/index.ts>MimeTypeAction

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
interface MimeTypeAction
import { type MimeTypeAction } from "https://deno.land/x/valibot@v1.0.0-beta.2-to-json-schema/src/index.ts";

MIME type action type.

Type Parameters

TInput extends Blob
TRequirement extends Requirement
TMessage extends ErrorMessage<MimeTypeIssue<TInput, TRequirement>> | undefined

Properties

readonly
type: "mime_type"

The action type.

readonly
reference: mimeType

The action reference.

readonly
expects: string

The expected property.

readonly
requirement: TRequirement

The MIME types.

readonly
message: TMessage

The error message.