mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 01:35:18 -04: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 {
|
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'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue