UNPKG

apiful

Version:
24 lines (12 loc) 1.02 kB
import type { FetchContext, FetchOptions } from 'ofetch'; import type { O as OpenAPIClient } from '../shared/apiful.fCh43EkG.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.fCh43EkG.mjs'; import type { OpenAPITSOptions } from 'openapi-typescript'; import type { 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 { createOpenAPIClient, fetchRequestInterceptor, generateDTS, resolvePathParams }; export type { OpenAPIClient };