UNPKG

apiful

Version:
15 lines (11 loc) 978 B
import { FetchOptions, FetchContext } from 'ofetch'; import { O as OpenAPIClient } from '../shared/apiful.Ccapjvp3.mjs'; 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.Ccapjvp3.mjs'; import { OpenAPITSOptions } from 'openapi-typescript'; import { ServiceOptions } from '../config.mjs'; 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 { OpenAPIClient, createOpenAPIClient, fetchRequestInterceptor, generateDTS, resolvePathParams };