@clean-js/api-gen
Version:
[docs](https://lulusir.github.io/clean-js/api-gen/usage) [中文文档](https://github.com/lulusir/clean-js-api-gen/blob/main/README-zh.md)
37 lines (36 loc) • 1.02 kB
TypeScript
import { RootAST } from 'src/ast';
export declare class DiffAnalyzer {
root: RootAST;
cache: RootAST | null;
log: {
api: {
data: string[];
addLen: number;
reduceLen: number;
};
pathParameter: {
data: string[];
};
queryParameter: {
data: string[];
};
bodyParameter: {
data: string[];
};
responseParameter: {
datas: string[][];
};
};
constructor(root: RootAST);
readCache(): void;
writeCache(): Promise<void>;
visit(): Promise<void>;
visitRootAST(node: RootAST, cache: RootAST): Promise<void>;
apiDiff(node: RootAST, cache: RootAST): void;
pathParamsDiff(node: RootAST, cache: RootAST): void;
queryParamsDiff(node: RootAST, cache: RootAST): void;
bodyParamsDiff(node: RootAST, cache: RootAST): void;
responsesDiff(node: RootAST, cache: RootAST): void;
writeLog(): void;
hasDiff(): boolean;
}