aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/user.model.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-16 10:36:18 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-16 10:36:18 +0200
commitee9e7b61f59a427208386738057c8eff48fba599 (patch)
tree9097de886128e15f21f0b5920a2076d16a087467 /shared/models/user.model.ts
parent70c065d64c330196d371941d9294a55da6e3aa37 (diff)
downloadPeerTube-ee9e7b61f59a427208386738057c8eff48fba599.tar.gz
PeerTube-ee9e7b61f59a427208386738057c8eff48fba599.tar.zst
PeerTube-ee9e7b61f59a427208386738057c8eff48fba599.zip
Create types for model enums
Diffstat (limited to 'shared/models/user.model.ts')
-rw-r--r--shared/models/user.model.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/shared/models/user.model.ts b/shared/models/user.model.ts
index a6be359d3..92dc73ec2 100644
--- a/shared/models/user.model.ts
+++ b/shared/models/user.model.ts
@@ -1,8 +1,10 @@
1export type UserRole = 'admin' | 'user'
2
1export interface User { 3export interface User {
2 id: number 4 id: number
3 username: string 5 username: string
4 email: string 6 email: string
5 displayNSFW: boolean 7 displayNSFW: boolean
6 role: string 8 role: UserRole
7 createdAt: Date 9 createdAt: Date
8} 10}