UNPKG

sensible-sdk

Version:

Sensible-SDK

18 lines (17 loc) 511 B
declare type ReqConfig = { uri?: string; method?: string; timeout?: number; body?: any; headers?: any; }; declare type HttpConfig = { timeout?: number; headers?: any; }; export declare class BrowserNet { static _xmlRequest(reqConfig: ReqConfig, callback: Function): void; static httpGet(url: string, params: any, cb?: Function, config?: any): Promise<unknown>; static httpPost(url: string, params: any, cb?: Function, config?: HttpConfig): Promise<unknown>; } export {};