Umi — API References - v1.3.0
    Preparing search index...

    Type Alias ScalarEnum<T>

    ScalarEnum: { [key: string | number]: string | number | T } | number | T

    Defines a scalar enum as a type from its constructor.

    Type Parameters

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