UNPKG

lendb-client

Version:

(WIP) Browser-client for connecting to [LenDB]{https://github.com/paradis-A/lendb-server}.

18 lines (17 loc) 460 B
import ky from "ky"; import Emittery from "emittery"; export default class LenFile { httpSettings: any; key: string; file: File; http: typeof ky; uploadsURL: string; protected emitter: Emittery; constructor(file?: File, baseURL?: string, http?: typeof ky, emitter?: Emittery); fetch(key: string): Promise<{ key: string; filename: string; url: string; }>; save(): Promise<any>; }