UNPKG

@marceloclp/monzojs

Version:

Unofficial wrapper for the Monzo API written in TypeScript.

6 lines (5 loc) 256 B
/** * An authed endpoint requires the access token as its first argument. */ export declare type AuthedEndpoint<P extends {}, R> = (accessToken: string, params: P) => Promise<R>; export declare type Endpoint<P extends {}, R> = (params: P) => Promise<R>;