UNPKG

@tableau/taco-toolkit

Version:
12 lines (11 loc) 413 B
import type { RequestOptions } from './request'; export interface AjaxResponse<D = any> { body: D; headers: Record<string, string>; ok: boolean; status: number; type: string; text: string; } export declare function get(url: string, options?: RequestOptions): Promise<AjaxResponse>; export declare function post(url: string, body?: object, options?: RequestOptions): Promise<AjaxResponse>;