BlueWallet/typings/frisbee.d.ts

16 lines
452 B
TypeScript
Raw Normal View History

2021-07-18 15:51:40 +02:00
declare module 'frisbee' {
// TODO: improve with more specific types
type RequestOptions = Record<string, any>;
type Response = any;
declare class Frisbee {
constructor(options: { baseURI?: string; headers?: Record<string, string> });
get(path: string, options?: RequestOptions): Promise<Response>;
post(path: string, options?: RequestOptions): Promise<Response>;
// TODO: add missing methods
}
export default Frisbee;
}