Since TypeScript's enum can be inconvenient to work with, some packages define their own enum-like objects:
enum
export const EnumLikeObject = { Pending: 'pending', InProgress: 'inProgress', Completed: 'completed'} as const Copy
export const EnumLikeObject = { Pending: 'pending', InProgress: 'inProgress', Completed: 'completed'} as const
Use the @enum tag to make TypeDoc document this object as an enum.
@enum
Indicates that a courier is en route delivering this order.
Since TypeScript's
enum
can be inconvenient to work with, some packages define their own enum-like objects:Use the
@enum
tag to make TypeDoc document this object as an enum.