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

x/valibot/src/actions/mimeType/mimeType.ts>MimeTypeAction

The modular and type safe schema library for validating structural data 🤖
Latest
interface MimeTypeAction
import { type MimeTypeAction } from "https://deno.land/x/valibot@v1.0.0-beta.7/src/actions/mimeType/mimeType.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.