UNPKG

@flatfile/safe-api

Version:

Flatfile Safe API client with streaming capabilities

14 lines (13 loc) 508 B
export declare abstract class BaseRequest<T, P = any> { protected params: string[]; protected payload?: P | undefined; protected abstract path: string; protected isRaw: boolean; protected _headers: Record<string, string>; protected query: Record<string, any>; constructor(params: string[], payload?: P | undefined); protected getPath(): string; protected abstract parseBody(body: any): Promise<T>; protected getConfig(): RequestInit; protected getUrl(): string; }