Using Getters for Static Properties in TypeScript Classes

Is getter the best way to attach a static property to a Schema (class) ?

export class StatusDraft extends S.TaggedClass<StatusDraft>()(
  "Draft",
  DefaultStatusSchema,
) {
  get displayName() {
    return "Draft";
  }
}


More context, my entities has a status (union of all the status) and I also have a product of all the status (for dropdown for search for example)
Was this page helpful?