1
0

feat: auth store type improvements

This commit is contained in:
Dominik Pschenitschni
2022-09-23 16:21:05 +02:00
parent 7b53e684aa
commit 176ad565cc
6 changed files with 53 additions and 56 deletions

View File

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

View File

@ -11,4 +11,5 @@ export interface IUserSettings extends IAbstract {
defaultListId: undefined | IList['id']
weekStart: 0 | 1 | 2 | 3 | 4 | 5 | 6
timezone: string
language: string
}