Ancora sistemazioni Typescript... getters, mutations, actions... "@" alias.
This commit is contained in:
30
src/model/UserStore.ts
Normal file
30
src/model/UserStore.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import { IToken } from 'model/other'
|
||||
|
||||
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
|
||||
|
||||
servercode?: number
|
||||
}
|
||||
Reference in New Issue
Block a user