An entity's representation.
Entities are objects that have a distinct identity that runs through time and different representations.
Example:
class Post extends Entity<{ title: string; content: string }> { get title() { return this.props.title } get content() { return this.props.content } } const post = new Post({ title: 'Hello Rimo!', content: 'You are amazing :)' }) // post.id -> generated // post.title -> 'Hello Rimo!' // post.content -> 'You are amazing :)'
The properties of this entity
Generated using TypeDoc
An entity's representation.
Entities are objects that have a distinct identity that runs through time and different representations.
Example:
class Post extends Entity<{ title: string; content: string }> { get title() { return this.props.title } get content() { return this.props.content } } const post = new Post({ title: 'Hello Rimo!', content: 'You are amazing :)' }) // post.id -> generated // post.title -> 'Hello Rimo!' // post.content -> 'You are amazing :)'