-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Description
π Search Terms
enum reverse mapping
π Version & Regression Information
This is the behavior in every version I tried, and I reviewed the FAQ for entries about enums or reverse mapping
β― Playground Link
π» Code
export enum BinaryOperator
{
Equal = '==',
StrictEqual = '===',
NotEqual = '!=',
StrictNotEqual = '!==',
LessThan = '<',
LessThanOrEqual = '<=',
GreaterThan = '>',
GreaterThanOrEqual = '>=',
And = '&&',
Or = '||',
Minus = '-',
Plus = '+',
Modulo = '%',
Div = '/',
Times = '*',
Pow = '^',
Dot = '.',
QuestionDot = '?.',
Format = '#',
Unknown = 'x'
}π Actual behavior
Reverse mapping is not generated
π Expected behavior
Reverse mapping should be generated as stated in https://www.typescriptlang.org/docs/handbook/enums.html#reverse-mappings
Additional information about the issue
No response
Metadata
Metadata
Assignees
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug