Web:Login: update interfaces and add new IError for error from server

This commit is contained in:
Timofey Boyko 2023-02-07 18:26:05 +03:00
parent 2397482010
commit 03116b8ffa

View File

@ -56,6 +56,7 @@ declare global {
utcHoursOffset: number;
utcOffset: string;
version: string;
standalone: boolean;
}
interface IBuildInfo {
@ -89,15 +90,23 @@ declare global {
selected: number;
themes: ITheme[];
}
interface IError {
status: number;
standalone: boolean;
message: string | unknown;
}
interface IInitialState {
portalSettings: IPortalSettings;
buildInfo: IBuildInfo;
providers: ProvidersType;
capabilities: ICapabilities;
match: MatchType;
currentColorScheme: ITheme;
isAuth: boolean;
logoUrls: any;
portalSettings?: IPortalSettings;
buildInfo?: IBuildInfo;
providers?: ProvidersType;
capabilities?: ICapabilities;
match?: MatchType;
currentColorScheme?: ITheme;
isAuth?: boolean;
logoUrls?: any;
error?: IError;
}
interface DevRequest {