gen-jhipster
Version:
Spring Boot + Angular/React/Vue in one handy generator
19 lines (18 loc) • 845 B
TypeScript
import type { EditFileCallback } from '../api.js';
/**
* TODO move to utils when converted to typescripts
* Converts multiples EditFileCallback callbacks into one.
*/
export declare function joinCallbacks<Generator>(...callbacks: EditFileCallback<Generator>[]): EditFileCallback<Generator>;
/**
* Utility function add condition to every block in addition to the already existing condition.
*/
export declare function addSectionsCondition(files: Record<string, any[]>, commonCondition: (...args: any[]) => boolean): {
[k: string]: any[];
};
/**
* Utility function to merge sections (jhipster files structure)
* Merging { foo: [blocks1], bar: [block2]} and { foo: [blocks3], bar: [block4]}
* Results in { foo: [blocks1, block3], bar: [block2, block4]}
*/
export declare function mergeSections(...allFiles: Record<string, any>[]): {};