UNPKG

@lyleunderwood/filereader-polyfill

Version:

W3C File API specification compliant FileReader polyfill for Node.js environments

14 lines 536 B
import { BlobPart, FilePropertyBag, NodeFile } from './types'; export declare class File extends Blob implements NodeFile { readonly name: string; readonly lastModified: number; private _path?; constructor(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag); constructor(filePath: string); get path(): string | undefined; private _getFileStats; arrayBuffer(): Promise<ArrayBuffer>; stream(): ReadableStream<Uint8Array>; text(): Promise<string>; } //# sourceMappingURL=File.d.ts.map