UNPKG

orval-effect

Version:

A swagger client generator for typescript

30 lines (24 loc) 1.33 kB
import { ConfigExternal, OptionsExport, NormalizedInputOptions, NormalizedOutputOptions, ContextSpecs, GeneratorApiOperations, GlobalOptions } from '@orval/core'; export { Options } from '@orval/core'; import * as openapi3_ts_oas30 from 'openapi3-ts/oas30'; import { SchemasObject } from 'openapi3-ts/oas30'; /** * Type helper to make it easier to use orval.config.ts * accepts a direct {@link ConfigExternal} object. */ declare function defineConfig(options: ConfigExternal): ConfigExternal; declare const getAllSchemas: (spec: object, specKey?: string) => SchemasObject; declare const _effect_generateContextSpecs: (optionConfig: OptionsExport) => Promise<{ input: NormalizedInputOptions; output: NormalizedOutputOptions; target: string; workspace: string; specs: Record<string, openapi3_ts_oas30.OpenAPIObject>; }>; declare const _effect_getApiGenerate: ({ input, output, context, }: { input: NormalizedInputOptions; output: NormalizedOutputOptions; context: ContextSpecs; }) => Promise<GeneratorApiOperations>; declare const generate: (optionsExport?: string | OptionsExport, workspace?: string, options?: GlobalOptions) => Promise<void>; export { _effect_generateContextSpecs, getAllSchemas as _effect_getAllSchemas, _effect_getApiGenerate, generate as default, defineConfig, generate };