Saltearse al contenido

ImportStatement

@aurorajs.dev/catalyst-cli


@aurorajs.dev/catalyst-cli / generator/domain/model / 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.

optional defaultImport?: 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.


optional oneRowByItem?: 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, …).