This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/src/modelTypes/IUser.ts
Dominik Pschenitschni 8e3f54ae42
All checks were successful
continuous-integration/drone/pr Build is passing
feat: convert model methods to named functions
2022-09-29 13:11:06 +02:00

23 lines
428 B
TypeScript

import type {IAbstract} from './IAbstract'
import type {IUserSettings} from './IUserSettings'
export const AUTH_TYPES = {
'UNKNOWN': 0,
'USER': 1,
'LINK_SHARE': 2,
} as const
type AuthType = typeof AUTH_TYPES[keyof typeof AUTH_TYPES]
export interface IUser extends IAbstract {
id: number
email: string
username: string
name: string
exp: number
type: AuthType
created: Date
updated: Date
settings: IUserSettings
}