This commit is contained in:
eibons
2025-08-15 21:37:29 +08:00
parent 2d7f77a984
commit ce999372ae
183 changed files with 21567 additions and 5 deletions

View File

@@ -0,0 +1,7 @@
/**
* 将模板字符串扁平化处理,转换为 Service 类型定义
* @param template - 包含 Service 类型定义的模板字符串
* @returns 处理后的 Service 类型定义字符串
* @throws {Error} 当模板中找不到 Service 类型定义时抛出错误
*/
export declare function flatten(template: string): string;

View File

@@ -0,0 +1,18 @@
import type { Eps } from "../../types";
/**
* 主入口:创建 eps 相关文件和 service
*/
export declare function createEps(): Promise<{
service: {};
serviceCode: {
content: string;
types: string[];
};
list: Eps.Entity[];
isUpdate: boolean;
} | {
service: {};
list: never[];
serviceCode?: undefined;
isUpdate?: undefined;
}>;