jdf-request
Version:
Package of John Doe & Fils
19 lines (18 loc) • 477 B
TypeScript
import { Http, RequestOptions } from '@angular/http';
export declare type requestOpt = {
endpoint: string;
body?: any;
params?: {
[key: string]: string;
};
};
export declare class JdfRequestService {
http?: Http;
baseUrl: string;
options: RequestOptions;
constructor(http?: Http);
setBaseUrl(url: string): void;
get(options: requestOpt): Promise<unknown>;
post(options: requestOpt): Promise<unknown>;
sayHello(): void;
}