@bitblit/asyncglk
Version:
A Typescript Glk library
6 lines (5 loc) • 347 B
TypeScript
export type ProgressCallback = (bytes: number) => void;
/** Parse Base 64 into a Uint8Array */
export declare function parse_base64(data: string): Promise<Uint8Array>;
/** Read a response, with optional progress notifications */
export declare function read_response(response: Response, progress_callback?: ProgressCallback): Promise<Uint8Array>;