TS1066
In ambient enum declarations member initializer must be constant expression.
Broken Code ❌
enum PreKeyAuth {
INVALID = 'Invalid',
UNKNOWN = 'Unknown',
VALID = 'Valid',
}Fixed Code ✔️
Try to replace your enum declaration with a type:
type PreKeyAuth = 'Invalid' | 'Unknown' | 'Valid';