libavoid-js
    Preparing search index...

    Type Alias EnumValue<Name>

    EnumValue: number & { "[enumBrand]": Name }

    A value of the enum Name, e.g. Avoid.RoutingParameter.shapeBufferDistance. At runtime it is a plain number; the brand only lets TypeScript catch values of the wrong enum. Methods with enum parameters throw a TypeError for non-numbers and a RangeError for numbers that are not a value of the enum.

    Type Parameters

    • Name extends string