UNPKG

@nuvix/storage

Version:

S3-compatible storage library for Nuvix BaaS platform with support for AWS S3, Wasabi, MinIO, and local storage

15 lines 517 B
import { Validator } from "./validator"; export declare class FileExt extends Validator { static readonly TYPE_JPEG = "jpeg"; static readonly TYPE_JPG = "jpg"; static readonly TYPE_GIF = "gif"; static readonly TYPE_PNG = "png"; static readonly TYPE_GZIP = "gz"; static readonly TYPE_ZIP = "zip"; private allowed; constructor(allowed: string[]); getDescription(): string; isValid(filename: string): boolean; private getFileExtension; } //# sourceMappingURL=file-ext.d.ts.map