A bot used for https://code-your-snake.codingmaster398.repl.co/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
819 B
27 lines
819 B
2 years ago
|
export default blobFromSync;
|
||
|
/**
|
||
|
* @param {string} path filepath on the disk
|
||
|
* @param {string} [type] mimetype to use
|
||
|
*/
|
||
|
export function blobFromSync(path: string, type?: string): Blob;
|
||
|
import File from "./file.js";
|
||
|
import Blob from "./index.js";
|
||
|
/**
|
||
|
* @param {string} path filepath on the disk
|
||
|
* @param {string} [type] mimetype to use
|
||
|
* @returns {Promise<Blob>}
|
||
|
*/
|
||
|
export function blobFrom(path: string, type?: string): Promise<Blob>;
|
||
|
/**
|
||
|
* @param {string} path filepath on the disk
|
||
|
* @param {string} [type] mimetype to use
|
||
|
* @returns {Promise<File>}
|
||
|
*/
|
||
|
export function fileFrom(path: string, type?: string): Promise<File>;
|
||
|
/**
|
||
|
* @param {string} path filepath on the disk
|
||
|
* @param {string} [type] mimetype to use
|
||
|
*/
|
||
|
export function fileFromSync(path: string, type?: string): File;
|
||
|
export { File, Blob };
|