Skip to main content
Module

x/valibot/mod.ts>MimeTypeValidation

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
interface MimeTypeValidation
implements BaseValidation<TInput>
import { type MimeTypeValidation } from "https://deno.land/x/valibot@v0.30.0/mod.ts";

MIME type validation type.

Type Parameters

TInput extends Blob
TRequirement extends `${string}/${string}`[]

Properties

type: "mime_type"

The validation type.

requirement: TRequirement

The MIME types.