fixed typescript errors

This commit is contained in:
Fedor Katurov 2021-04-08 16:25:25 +07:00
parent 9a7a038032
commit fe311e7839
41 changed files with 786 additions and 777 deletions

View file

@ -11,7 +11,7 @@ export interface IUser {
role: IRoles[keyof IRoles];
routes: {};
success: boolean;
id?: string;
id: string;
uid: string;
token?: string;
photo: string;
@ -31,9 +31,9 @@ export const DEFAULT_USER: IUser = {
role: ROLES.guest,
routes: {},
success: false,
id: null,
token: null,
photo: null,
name: null,
uid: null,
id: '',
token: undefined,
photo: '',
name: '',
uid: '',
};