types/DDD
@arolariu/website / types/DDD
types/DDD
Fileoverview
Domain-Driven Design (DDD) type definitions and building blocks.
Remarks
Provides TypeScript type definitions aligned with DDD tactical patterns:
Entities:
BaseEntity<T>: Base entity with identity and audit metadataNamedEntity<T>: Entity with human-readable name and descriptionIAuditable: Audit trail contract for creation, modification, and lifecycle tracking
Shared Kernel:
Currency: Value object for monetary currency representation
Design Principles:
- Strong typing with generic identifiers
- Consistent audit metadata across all entities
- Immutable identity (ID should not change after creation)
- Soft delete support for data retention compliance
See
References
BaseEntity
Re-exports BaseEntity
IAuditable
Re-exports IAuditable
NamedEntity
Re-exports NamedEntity
Currency
Re-exports Currency
// was this page useful?