@coinset/bitflyer
Version:
Bitflyer API client for Node.js
15 lines • 504 B
TypeScript
import type { RequestInit } from 'node-fetch';
declare type PublicAPI<O, R> = (options: O, init?: RequestInit) => Promise<R>;
declare type SimplePublicAPI<O, R> = (options?: O, init?: RequestInit) => Promise<R>;
declare type Response<Data> = {
success: true;
data: Data;
} | {
success: false;
data: {
code: number;
};
};
declare type Reviver = Parameters<typeof JSON.parse>[1];
export type { PublicAPI, SimplePublicAPI, Response, Reviver };
//# sourceMappingURL=fetch.d.ts.map