feat: auth store type improvements
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
}
|
Reference in New Issue
Block a user