import { mimeType } from "https://deno.land/x/valibot@v0.37.0/src/actions/mimeType/index.ts";
Creates a MIME type validation action.
Type Parameters
TInput extends Blob
Parameters
requirement: TRequirement
The MIME types.
Returns
MimeTypeAction<TInput, TRequirement, undefined>
A MIME type action.
Creates a MIME type validation action.
Type Parameters
TInput extends Blob
TMessage extends ErrorMessage<MimeTypeIssue<TInput, TRequirement>> | undefined
Parameters
requirement: TRequirement
The MIME types.
message: TMessage
The error message.
Returns
A MIME type action.