feat: convert model methods to named functions
This commit is contained in:
parent
176ad565cc
commit
8e3f54ae42
16 changed files with 75 additions and 51 deletions
|
|
@ -7,13 +7,15 @@ export const AUTH_TYPES = {
|
|||
'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: typeof AUTH_TYPES[keyof typeof AUTH_TYPES],
|
||||
type: AuthType
|
||||
|
||||
created: Date
|
||||
updated: Date
|
||||
|
|
|
|||
Reference in a new issue