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 {
development = 'development',
production = 'production',
test = 'test'
export interface Environment {
development: string;
production: string;
test: string;
}
export enum Permission {
freely = 'freely',
editable = 'editable',
limited = 'limited',
locked = 'locked',
protected = 'protected',
private = 'private'
export const Environment: Environment = {
development: 'development',
production: 'production',
test: 'test'
}
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'
}