UNPKG

@api-helper/cli

Version:

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

9 lines (8 loc) 409 B
import { AbstractParserPlugin, ParserPluginOptions, ParserPluginRunResult } from '../../../lib/types'; import { Config } from '../../../lib'; declare type DocumentServers = Config['documentServers']; export default class ParserYapiPlugin implements AbstractParserPlugin { name: string; run(documentServers: DocumentServers, options?: ParserPluginOptions): Promise<ParserPluginRunResult>; } export {};