Skip to main content

Event

Defined in: domain/Event.ts:16

Represents an Event entity. Extends Id to provide a unique identifier.

Remarks​

Each event has a name and an optional description.

Example​

const event = new Event(1, "Launch", "Product launch event");
console.log(event.name, event.description);

Extends​

  • Id<number>

Constructors​

Constructor​

new Event(
id?,
name?,
description?): Event;

Defined in: domain/Event.ts:28

Creates a new Event instance.

Parameters​

id?​

number

The unique identifier for the event.

name?​

string

The name of the event.

description?​

string

The description of the event.

Returns​

Event

Overrides​

Id.constructor

Properties​

description?​

optional description: string;

Defined in: domain/Event.ts:20

The description of the event.


id?​

optional id: number;

Defined in: types/Id.ts:15

The unique identifier for the entity.

Inherited from​

Id.id


name?​

optional name: string;

Defined in: domain/Event.ts:18

The name of the event.