mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-04-20 13:35:52 +00:00
config/enum.ts: Refactor enums into interface and object
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
37c2cd0731
commit
1437cf3ea5
1 changed files with 26 additions and 11 deletions
|
@ -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'
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue