UNPKG

apiful

Version:
17 lines (13 loc) 1.09 kB
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; type ParseInt<S extends string> = S extends `${infer N extends number}` ? N : never; declare function generateDTS(services: Record<string, ServiceOptions>, openAPITSOptions?: OpenAPITSOptions): Promise<string>; export { OpenAPIClient, createOpenAPIClient, fetchRequestInterceptor, generateDTS, resolvePathParams }; export type { ParseInt };