UNPKG

1.02 kBTypeScriptView Raw
1/** `FileList` polyfill */
2export class FileList {
3 /** Set private properties and length */
4 constructor(...args: any[]);
5 /**
6 * @param {number} index
7 * @returns {File}
8 */
9 item(index: number): File;
10 /** @returns {number} */
11 get length(): number;
12 /** @readonly @type {"FileList"} */
13 readonly [Symbol.toStringTag]: "FileList";
14 #private;
15}
16export default filelist;
17declare namespace filelist {
18 const file: {
19 test(x: any): boolean;
20 replace(f: any): any;
21 revive({ name, type, buffer, lastModified }: {
22 name: any;
23 type: any;
24 buffer: any;
25 lastModified: any;
26 }): File;
27 replaceAsync(f: any): any;
28 };
29 namespace filelist {
30 function test(x: any): boolean;
31 function test(x: any): boolean;
32 function replace(fl: any): any[];
33 function replace(fl: any): any[];
34 function revive(o: any): FileList;
35 function revive(o: any): FileList;
36 }
37}