import { mimeType } from "https://deno.land/x/valibot@v1.0.0-beta.7/src/actions/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.