UNPKG

@adocasts.com/dto

Version:

Easily make and generate DTOs from Lucid Models

36 lines (35 loc) 809 B
export type EntityInfo = { entity: { path: string; name: string; }; variable: string; className: string; fileName: string; exportPath: string; properties: EntityProperty[]; }; export type EntityProperty = { name: string; type: string; typeRaw: any[]; }; export type ImportMap = { name: string; namespace: string; isDefault: boolean; }; export type ImportLine = { name: string; names: string[]; namespace: string; line: string; }; export declare class ImportService { #private; /** * Get grouped import statements from generated entity type information * @param entity Either a DtoInfo or ValidatorInfo object */ static getImportStatements(entity: EntityInfo, modelFileLines: string[]): string[]; }