UNPKG

auto-request

Version:

通过Yapi JSON Schema生成接口Axios或Taro接口

16 lines 605 B
import type { AutoRequestOptions } from '@/core/snapshot'; /** * 生成并写入文件 * @param template - API 模板代码 * @param defines - 类型定义对象 * @param jsdocDefines - JSDoc 定义配置 * @param outputPath - 输出路径 * @param options - 配置选项 * @returns Promise with write function */ export declare const generateFile: (template: any, defines: any, jsdocDefines: { content: string; prefix: string; endifx: string; } | undefined, outputPath: string | undefined, options: AutoRequestOptions) => Promise<unknown>; //# sourceMappingURL=file-generator.d.ts.map