config/enum.ts: Refactor enums into interface and object

Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
David Mehren 2020-04-12 17:46:37 +02:00
parent 37c2cd0731
commit 1437cf3ea5
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB

View file

@ -1,14 +1,29 @@
export enum Environment { export interface Environment {
development = 'development', development: string;
production = 'production', production: string;
test = 'test' test: string;
} }
export enum Permission { export const Environment: Environment = {
freely = 'freely', development: 'development',
editable = 'editable', production: 'production',
limited = 'limited', test: 'test'
locked = 'locked', }
protected = 'protected',
private = 'private' export interface Permission {
freely: string;
editable: string;
limited: string;
locked: string;
protected: string;
private: string;
}
export const Permission: Permission = {
freely: 'freely',
editable: 'editable',
limited: 'limited',
locked: 'locked',
protected: 'protected',
private: 'private'
} }