UNPKG

mattermost-redux

Version:

Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client

18 lines (17 loc) 669 B
import { ErrorObject } from 'serialize-error'; import { ActionFunc } from "../types/actions"; import { ServerError } from "../types/errors"; export declare function dismissErrorObject(index: number): { type: "DISMISS_ERROR"; index: number; data: null; }; export declare function dismissError(index: number): ActionFunc; export declare function getLogErrorAction(error: ErrorObject, displayable?: boolean): { type: "LOG_ERROR"; displayable: boolean; error: ErrorObject; data: null; }; export declare function logError(error: ServerError, displayable?: boolean): ActionFunc; export declare function clearErrors(): ActionFunc;