@dataswift/hat-js
Version:
HAT JavaScript SDK for web and Node.js
10 lines (9 loc) • 425 B
TypeScript
import 'cross-fetch/polyfill';
import { HatHttpParameters, IHttpResponse } from '../interfaces/http.interface';
import { State } from '../state';
export declare class HttpService {
private state;
constructor(state: State);
req: <T>(path: string, args?: RequestInit, params?: HatHttpParameters | undefined) => Promise<IHttpResponse<T>>;
http: <T>(request: string, args: object) => Promise<IHttpResponse<T>>;
}