@shuyun-ep-team/scripts
Version:
为项目提供相应的脚本,使其减少繁琐的配置。
10 lines (9 loc) • 458 B
TypeScript
export interface IJsonDiff {
type: 'add' | 'remove';
prop: string;
value?: string;
}
export declare function parseJson(json: string | Record<string, any>): any;
export declare function diff(source: Record<string, string | number | boolean>, dest: Record<string, string | number | boolean>): Promise<IJsonDiff[]>;
export declare function diffLog(diffed?: IJsonDiff[]): void;
export declare function getJson(filePath: string): Record<string, any>;