mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-23 15:20:55 +01:00
16 lines
452 B
TypeScript
16 lines
452 B
TypeScript
|
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;
|
||
|
}
|