UNPKG

blockchain-api-client

Version:

Blockchain Api Client which maps Results of all supported Blockchain API's into a unified interface

13 lines (12 loc) 405 B
import { RequestInit } from 'node-fetch'; export declare type Fetch = <T>(url: string, params?: HttpParams) => Promise<T>; export declare enum HttpMethod { POST = "POST", GET = "GET" } export declare const fetchFrom: <T>(url: string, params?: HttpParams | undefined) => Promise<T>; export declare type HttpParams = { args?: RequestInit; method?: HttpMethod; body?: any; };