UNPKG

@api-helper/cli

Version:

根据 Swagger 的接口定义生成 TypeScript/JavaScript 的接口类型及其请求函数代码。

6 lines (5 loc) 321 B
import { DocumentServers, ParserPluginOptions, AbstractParserPlugin, ParserPluginRunResult } from '../../../lib/types'; export default class ParserSwaggerPlugin implements AbstractParserPlugin { name: string; run(documentServers: DocumentServers, options?: ParserPluginOptions): Promise<ParserPluginRunResult>; }