UNPKG

513 BTypeScriptView Raw
1import { ValidationOptions } from '../ValidationOptions';
2export declare const IS_MIME_TYPE = "isMimeType";
3/**
4 * Check if the string matches to a valid MIME type format
5 * If given value is not a string, then it returns false.
6 */
7export declare function isMimeType(value: unknown): boolean;
8/**
9 * Check if the string matches to a valid MIME type format
10 * If given value is not a string, then it returns false.
11 */
12export declare function IsMimeType(validationOptions?: ValidationOptions): PropertyDecorator;