UNPKG

@marceloclp/monzojs

Version:

Unofficial wrapper for the Monzo API written in TypeScript.

18 lines (17 loc) 609 B
import { StringifiableRecord } from 'query-string'; export default class Fetcher { private headers; private body?; private query?; constructor(accessToken: string); static buildUrl(path: string, query?: StringifiableRecord): string; withFormData<P extends {} = Object>(data: P): this; withJSON(data: Object): this; withQuery(query: StringifiableRecord): this; private fetch; get<R>(path: string): Promise<R>; post<R>(path: string): Promise<R>; put<R>(path: string): Promise<R>; patch<R>(path: string): Promise<R>; delete<R>(path: string): Promise<R>; }