gen-jhipster
Version:
VHipster - Spring Boot + Angular/React/Vue in one handy generator
21 lines (20 loc) • 1 kB
TypeScript
export type JavaImportType = {
staticImport?: boolean;
};
export declare function addJavaImport(identifier: string, type?: JavaImportType): (content: string) => string;
export declare function addJavaImport(content: string, identifierOrType: string, type?: JavaImportType): string;
type JavaAnnotationParameter = {
value?: string | string[];
} & Record<string, string | string[]>;
export type JavaAnnotation = {
package?: string;
annotation: string;
parameters?: (oldParameters: JavaAnnotationParameter, callbacks: {
addKeyValue: (key: string, item: string) => void;
setKeyValue: (key: string, item: string) => void;
}) => void | string | JavaAnnotationParameter;
};
export declare function parseJavaAnnotation(annotation?: string): JavaAnnotationParameter;
export declare function addJavaAnnotation(annotation: JavaAnnotation): (content: string) => string;
export declare function addJavaAnnotation(content: string, annotation: JavaAnnotation): string;
export {};