json-merger
Version:
Merge JSON (or YAML) files and objects with indicators like $import $remove $replace $merge etc
26 lines (25 loc) • 792 B
TypeScript
export type ArrayMergeOperation = "combine" | "replace" | "concat";
export default class Config implements IConfig {
cwd: string;
enableExpressionOperation: boolean;
errorOnFileNotFound: boolean;
errorOnRefNotFound: boolean;
operationPrefix: string;
params: any;
stringify: boolean | "pretty";
defaultArrayMergeOperation: ArrayMergeOperation;
spaces?: number;
constructor(config?: Partial<IConfig>);
set(config?: Partial<IConfig>): void;
}
export interface IConfig {
cwd: string;
errorOnFileNotFound: boolean;
errorOnRefNotFound: boolean;
operationPrefix: string;
enableExpressionOperation: boolean;
params: any;
stringify: boolean | "pretty";
defaultArrayMergeOperation: ArrayMergeOperation;
spaces?: number;
}