Skip to main content

types/DDD

@arolariu/website


@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 metadata
  • NamedEntity<T>: Entity with human-readable name and description
  • IAuditable: 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

Overview

References

BaseEntity

Re-exports BaseEntity


IAuditable

Re-exports IAuditable


NamedEntity

Re-exports NamedEntity


Currency

Re-exports Currency

// was this page useful?