UNPKG

@versatiledatakit/shared

Version:

Versatile Data Kit Shared library enables reusability of shared features like: NgRx Redux, Error Handlers, Utils, Generic Components, etc.

22 lines (21 loc) 588 B
import { HttpErrorResponse } from '@angular/common/http'; import { VmwToastType } from '../../../commons'; import { ApiErrorMessage } from '../../../common'; export interface Toast { title: string; description: string; type: VmwToastType; error?: Error | ApiErrorMessage | FormattedError | HttpErrorResponse; expanded?: boolean; responseStatus?: number; extendedData?: { title: string; description: string; }; } export interface FormattedError { consequences?: string; countermeasures?: string; what: string; why: string; }