js-draw
Version:
Draw pictures using a pen, touchscreen, or mouse! JS-draw is a drawing library for JavaScript and TypeScript.
10 lines (9 loc) • 344 B
TypeScript
export interface FileToBase64UrlOptions {
onprogress?: (evt: ProgressEvent<FileReader>) => void;
onWarning?: (message: string, error: any) => void;
}
/**
* Converts `file` to a base64 data URL.
*/
declare const fileToBase64Url: (file: Blob, options?: FileToBase64UrlOptions) => Promise<string | null>;
export default fileToBase64Url;