ScalarEnum<T>: {
    [key: number | string]: string | number | T;
} | number | T

Defines a scalar enum as a type from its constructor.

Example

enum Direction { Left, Right };
type DirectionType = ScalarEnum<Direction>;

Type Parameters

  • T

Generated using TypeDoc