ancora su Typescript...
suddiviso i ts dai html e scss
This commit is contained in:
28
src/model/user.ts
Normal file
28
src/model/user.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import { IToken } from '@/types'
|
||||
|
||||
export const DefaultUser = <IUserState>{
|
||||
email: '',
|
||||
username: '',
|
||||
idapp: process.env.APP_ID,
|
||||
password: '',
|
||||
lang: 'it'
|
||||
}
|
||||
|
||||
export interface IUserState {
|
||||
_id?: string
|
||||
email?: string
|
||||
username: string
|
||||
idapp?: any
|
||||
password?: string
|
||||
lang?: string
|
||||
repeatPassword?: string
|
||||
|
||||
idToken?: string
|
||||
userId?: number
|
||||
|
||||
tokens?: IToken[]
|
||||
|
||||
verifiedEmail?: boolean
|
||||
|
||||
tokenforgot?: string
|
||||
}
|
||||
Reference in New Issue
Block a user