@api-helper/cli
Version:
根据 Swagger 的接口定义生成 TypeScript/JavaScript 的接口类型及其请求函数代码。
11 lines (10 loc) • 674 B
TypeScript
import { FormatCodeConfig } from '@api-helper/core/lib/interface';
import { Config, AbstractParserPlugin, ParserPluginRunResult } from '../lib/types';
import { ServerOptions } from '../lib/service/Service';
import formatCode from '../lib/tools/format-code';
export type { RequestMethod } from './helpers';
export { checkIsInterface } from '@api-helper/template/lib/utils/util';
export declare function defineConfig(config: Config | Config[]): Config[];
export declare function run(cmd?: 'init' | null, config?: ServerOptions, isTestEnv?: boolean): Promise<void>;
export { formatCode };
export type { Config, FormatCodeConfig, AbstractParserPlugin, ParserPluginRunResult, };