apiful
Version:
Extensible, typed API tooling
24 lines (12 loc) • 1.02 kB
TypeScript
import type { FetchContext, FetchOptions } from 'ofetch';
import type { O as OpenAPIClient } from '../shared/apiful.fCh43EkG.js';
export { F as FetchResponseData, a as FetchResponseError, b as FilterMethods, M as MethodOption, c as OpenAPIFetchOptions, P as ParamsOption, R as RequestBodyOption } from '../shared/apiful.fCh43EkG.js';
import type { OpenAPITSOptions } from 'openapi-typescript';
import type { ServiceOptions } from '../config.js';
import 'openapi-typescript-helpers';
declare function createOpenAPIClient<Paths>(defaultOptions?: FetchOptions | (() => FetchOptions)): OpenAPIClient<Paths>;
declare function resolvePathParams(path: string, params?: Record<string, string>): string;
declare function fetchRequestInterceptor(ctx: FetchContext): void;
declare function generateDTS(services: Record<string, ServiceOptions>, openAPITSOptions?: OpenAPITSOptions): Promise<string>;
export { createOpenAPIClient, fetchRequestInterceptor, generateDTS, resolvePathParams };
export type { OpenAPIClient };