PeerTube/shared/models/user.model.ts

11 lines
173 B
TypeScript
Raw Normal View History

2017-06-16 10:36:18 +02:00
export type UserRole = 'admin' | 'user'
2017-06-10 22:15:25 +02:00
export interface User {
id: number
username: string
email: string
displayNSFW: boolean
2017-06-16 10:36:18 +02:00
role: UserRole
2017-06-10 22:15:25 +02:00
createdAt: Date
}