function listEnumNumbers(enumObject) {
    return listEnumValues(enumObject)
        .map(val => val.number)
        .filter((num, index, arr) => arr.indexOf(num) == index);
}
Lists the numbers of a Typescript enum.

Throws if the enum does not adhere to the rules of enums generated by
protobuf-ts. See `isEnumObject()`.