gen-jhipster
Version:
VHipster - Spring Boot + Angular/React/Vue in one handy generator
10 lines (9 loc) • 947 B
TypeScript
import type { Merge } from 'type-fest';
import type { YoRcConfigValue, YoRcFileContent } from '../constants/yeoman.ts';
import type { Entity } from '../jhipster/types/entity.ts';
import type { YoRcJHipsterContent } from '../jhipster/types/yo-rc.ts';
export declare const YO_RC_CONFIG_KEY = "gen-jhipster";
export declare const mergeYoRcContent: <const OldConfig extends YoRcFileContent<YoRcConfigValue, string>, const NewConfig extends YoRcFileContent<YoRcConfigValue, string>>(oldConfig: OldConfig, newConfig: NewConfig) => Merge<OldConfig, NewConfig>;
export declare const readEntityFile: <Content = Entity>(applicationPath: string, entity: string) => Content;
export declare const readYoRcFile: <Content extends YoRcConfigValue = YoRcConfigValue>(yoRcPath?: string) => YoRcJHipsterContent<Content>;
export declare const readCurrentPathYoRcFile: <Content extends YoRcConfigValue = YoRcConfigValue>() => YoRcJHipsterContent<Content> | undefined;