UNPKG

@nuxthub/core

Version:

Build full-stack Nuxt applications, with zero configuration.

13 lines (12 loc) 520 B
import type { BlobEnsureOptions } from '../types'; /** * Ensure the blob is valid and meets the specified requirements. * * @param blob The blob to check * @param options The options to check against * @param options.maxSize The maximum size of the blob (e.g. '1MB') * @param options.types The allowed types of the blob (e.g. ['image/png', 'application/json', 'video']) * * @throws If the blob does not meet the requirements */ export declare function ensureBlob(blob: Blob, options?: BlobEnsureOptions): void;