PeerTube/shared/models/user.model.ts

11 lines
173 B
TypeScript

export type UserRole = 'admin' | 'user'
export interface User {
id: number
username: string
email: string
displayNSFW: boolean
role: UserRole
createdAt: Date
}