UNPKG

@yext/search-core

Version:

Typescript Networking Library for the Yext Search API

9 lines (8 loc) 392 B
import { BodyParams, QueryParams } from '../models/http/params'; /** * A service for HTTP Requests */ export interface HttpService { get<T>(url: string, queryParams: QueryParams, clientSdk: Record<string, string>, authToken?: string): Promise<T>; post<T>(url: string, queryParams: QueryParams, body: BodyParams, clientSdk: Record<string, string>, authToken?: string): Promise<T>; }