function listEnumNames(enumObject) {
    return listEnumValues(enumObject).map(val => val.name);
}
Lists the names of a Typescript enum.

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