fixer-api
Version:
fixer.io API client in TypeScript
11 lines (10 loc) • 334 B
TypeScript
import { Fixer, IRawParams } from './Fixer';
type Fetcher = (url: string) => Promise<{
readonly json: () => any;
}>;
declare class NodeFixer extends Fixer {
fetch: Fetcher;
constructor(fetch: Fetcher, ...restParams: any[]);
request<Result>(path: string, opts: IRawParams): Promise<Result>;
}
export default NodeFixer;