UNPKG

1.11 kBTypeScriptView Raw
1/**
2 * Creates a synthetic pdf File object instance
3 * @param name
4 * @param size
5 * @param type
6 * @returns
7 */
8export declare const createPDF: (name?: string, size?: number, type?: string) => File;
9/**
10 * Creates a synthetic word File object instance
11 * @param name
12 * @param size
13 * @param type
14 * @returns
15 */
16export declare const createWord: (name?: string, size?: number, type?: string) => File;
17/**
18 * Create a list of synthetic files with different mime types
19 * @param size the file size for each synthetic file
20 * @returns a list of synthetic file
21 */
22export declare const createListOfMultiTypeFile: (size?: number) => File[];
23/**
24 * Creates a synthetic file.
25 * By default, creates a png image file
26 * @param name the file name to show. By default is set to "png-image-file-with-large-name.png"
27 * @param size the size in bytes of the file. By default this value is set to 455555
28 * @param type the mime type of the file. By default is set to "image/png"
29 * @returns
30 */
31export declare const createSyntheticFile: (name?: string, size?: number, type?: string) => File;