I am in need of two Typescript enums as shown below:
export enum OrientationAsNumber {
PORTRAIT,
SQUARE,
LANDSCAPE
}
export enum OrientationAsString {
PORTRAIT = 'portrait',
SQUARE = 'square',
LANDSCAPE = 'landscape'
}
Would it be possible to use one enum to generate the second enum, allowing for the reuse of the enum keys PORTRAIT
, SQUARE
, and LANDSCAPE
?