@tableau/taco-toolkit
Version:
Tableau Connector Toolkit
12 lines (11 loc) • 413 B
TypeScript
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>;