UNPKG

@worker-tools/structured-json

Version:

Stringify and parse JavaScript values according to Structured Clone Algorithm.

38 lines (37 loc) 1.02 kB
/** `FileList` polyfill */ export class FileList { /** Set private properties and length */ constructor(...args: any[]); /** * @param {number} index * @returns {File} */ item(index: number): File; /** @returns {number} */ get length(): number; /** @readonly @type {"FileList"} */ readonly [Symbol.toStringTag]: "FileList"; #private; } export default filelist; declare namespace filelist { const file: { test(x: any): boolean; replace(f: any): any; revive({ name, type, buffer, lastModified }: { name: any; type: any; buffer: any; lastModified: any; }): File; replaceAsync(f: any): any; }; namespace filelist { function test(x: any): boolean; function test(x: any): boolean; function replace(fl: any): any[]; function replace(fl: any): any[]; function revive(o: any): FileList; function revive(o: any): FileList; } }