Ir al contenido

ImportStatement

@aurorajs.dev/catalyst-cli


@aurorajs.dev/catalyst-cli / generator/domain/model / ImportStatement

Defined in: generator/domain/model.ts:411

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:413

If true, emitted as a default import (import X from '...').


items: string | string[]

Defined in: generator/domain/model.ts:415

Named imports, or a single default/namespace identifier.


optional oneRowByItem?: boolean

Defined in: generator/domain/model.ts:417

If true, each named item goes on its own line.


path: string

Defined in: generator/domain/model.ts:419

Module specifier (@nestjs/common, ./user.model, …).