mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +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;
|
|
}
|