UNPKG

@prism-engineer/router

Version:

Type-safe Express.js router with automatic client generation

22 lines 550 B
interface ApiCallOptions { baseUrl: string; path: string; method: string; pathParams?: object; query?: any; body?: any; headers?: object; requestSchema?: { query?: object; body?: object; headers?: object; }; responseSchema?: Record<string, { contentType?: string; body?: object; headers?: object; }>; } export declare function makeApiCall(options: ApiCallOptions, interceptors?: Function[]): Promise<any>; export {}; //# sourceMappingURL=makeApiCall.d.ts.map