UNPKG

@contentstack/cli-utilities

Version:

Utilities for contentstack projects

11 lines (10 loc) 489 B
import { HttpClient } from './client'; import { HttpResponse } from './http-response'; export interface IHttpClient { headers(headers: any): HttpClient; contentType(contentType: string): HttpClient; get<R>(url: string, queryParams: object): Promise<HttpResponse<R>>; post<R>(url: string, payload?: any): Promise<HttpResponse<R>>; put<R>(url: string, payload?: any): Promise<HttpResponse<R>>; delete<R>(url: string, queryParams: object): Promise<HttpResponse<R>>; }