ConstructorInjectionStatement
@aurorajs.dev/catalyst-cli / generator/domain/model / ConstructorInjectionStatement
Interface: ConstructorInjectionStatement
Section titled “Interface: ConstructorInjectionStatement”Defined in: generator/domain/model.ts:376
Declaration of a constructor parameter marked for DI (constructor(private readonly x: X)).
Consumed by the constructorInjection helper in code-gen.
Properties
Section titled “Properties”className
Section titled “className”className:
string
Defined in: generator/domain/model.ts:378
Type name / class used as the parameter type.
readonly?
Section titled “readonly?”
optionalreadonly?:boolean
Defined in: generator/domain/model.ts:379
scope:
"private"|"protected"|"public"
Defined in: generator/domain/model.ts:380
variableName
Section titled “variableName”variableName:
string
Defined in: generator/domain/model.ts:382
Identifier the parameter binds to.