UNPKG

@yext/search-core

Version:

Typescript Networking Library for the Yext Search API

17 lines (16 loc) 631 B
import { BodyParams, QueryParams } from '../models/http/params'; import { HttpService } from '../services/HttpService'; /** * HttpServiceImpl is a wrapper around the native implementation of AJAX * related matters. */ export declare class HttpServiceImpl implements HttpService { /** * Perform a GET request */ get<T>(url: string, queryParams: QueryParams, clientSdk: Record<string, string>, authToken?: string): Promise<T>; /** * Perform a POST request */ post<T>(url: string, queryParams: QueryParams, body: BodyParams, clientSdk: Record<string, string>, authToken?: string): Promise<T>; }