ImportStatement
@aurorajs.dev/catalyst-cli / generator/domain/model / ImportStatement
Interface: ImportStatement
Section titled “Interface: ImportStatement”Defined in: generator/domain/model.ts:361
Declaration of an import statement handled by code-gen.importManager.
Allows templates to declare imports at render time and let the helper
de-duplicate, group and sort them consistently.
Properties
Section titled “Properties”defaultImport?
Section titled “defaultImport?”
optionaldefaultImport?:boolean
Defined in: generator/domain/model.ts:363
If true, emitted as a default import (import X from '...').
items:
string|string[]
Defined in: generator/domain/model.ts:365
Named imports, or a single default/namespace identifier.
oneRowByItem?
Section titled “oneRowByItem?”
optionaloneRowByItem?:boolean
Defined in: generator/domain/model.ts:367
If true, each named item goes on its own line.
path:
string
Defined in: generator/domain/model.ts:369
Module specifier (@nestjs/common, ./user.model, …).