@edgeone/framework-detect
Version:
A framework detection library for web projects
24 lines • 588 B
TypeScript
/**
* Git 提供商适配器接口
*/
export interface GitProviderAdapter {
/**
* 获取仓库目录或文件内容
* @param body 请求体
* @param rootDir 根目录
* @param path 文件路径
* @returns 返回内容或 null
*/
getContents(body: any, rootDir: string, path: string): Promise<any>;
}
/**
* Git 提供商请求体接口
*/
export interface GitProviderBody {
Provider: "Github" | "Gitee" | "Gitlab";
Namespace: string;
RepoName: string;
RootDir?: string;
[key: string]: any;
}
//# sourceMappingURL=types.d.ts.map