meilisearch
Version:
The Meilisearch JS client for Node.js and the browser.
17 lines • 688 B
TypeScript
import type { Config, RequestOptions } from "./types/index.js";
/** Class used to perform HTTP requests. */
export declare class HttpRequests {
#private;
constructor(config: Config);
/** Request with GET. */
get<T = unknown>(options: RequestOptions): Promise<T>;
/** Request with POST. */
post<T = unknown>(options: RequestOptions): Promise<T>;
/** Request with PUT. */
put<T = unknown>(options: RequestOptions): Promise<T>;
/** Request with PATCH. */
patch<T = unknown>(options: RequestOptions): Promise<T>;
/** Request with DELETE. */
delete<T = unknown>(options: RequestOptions): Promise<T>;
}
//# sourceMappingURL=http-requests.d.ts.map