Utility class for building TypeScript class properties. Designed to be injected via DI.
Creates a class property declaration.
The name of the property.
The AST node representing the property's type.
Modifiers, decorators, and comments for the property.
The generated PropertyDeclaration AST node.
// Generates:// /** User's age */// @IsOptional() public readonly age?: number; Copy
// Generates:// /** User's age */// @IsOptional() public readonly age?: number;
Utility class for building TypeScript class properties. Designed to be injected via DI.