Closed Fireboltofdeath closed 1 year ago
Closing this for now as it's not clear how these guards should be generated.
Non literal enums have no details about values of individual members and whether empty enums should be permissive or restrictive is not very clear. TypeScript appears to allow any numbers in the latter case but I don't think this behavior makes sense for any of Flamework's usecases.
In the case of const enum
s, TypeScript does calculate the values for this although it's still represented as a "namespace enum" which needs to be handled separately from normal enums.