UNPKG

react-redux-methods

Version:

A lightweight react-redux toolkit for writing strong-typed, minimal code redux boilerplate.

60 lines (59 loc) 2.37 kB
import { ComposePayload } from "../../../types"; type NotificationOptions = { toastId?: string; isShowMessage: boolean; theme: "colored" | "light" | "dark"; variantType: "successTopCenter" | "successTopRight" | "errorTopCenter"; messageText: string; autoClose: number; hideProgressBar: boolean; closeOnClick: boolean; limit: number; component: any; transition: "bounce" | "fade" | "flip" | "rotate" | "slide" | "zoom"; clearQueue: boolean; delay?: number; closeButton: boolean; updateToast: boolean; }; export declare const notifiersInitialState: NotificationOptions; export declare const notifiersReducer: import("redux").Reducer<NotificationOptions, import("redux").AnyAction>, notifiersActions: import("../../../types").MapComposeAction<NotificationOptions, { toastNotifierShow: (s: NotificationOptions, a: ComposePayload<NotificationOptions>) => { isShowMessage: true; toastId?: string | undefined; theme: "colored" | "light" | "dark"; variantType: "successTopCenter" | "successTopRight" | "errorTopCenter"; messageText: string; autoClose: number; hideProgressBar: boolean; closeOnClick: boolean; limit: number; component: any; transition: "bounce" | "fade" | "flip" | "rotate" | "slide" | "zoom"; clearQueue: boolean; delay?: number | undefined; closeButton: boolean; updateToast: boolean; }; toastNotifierHide: () => NotificationOptions; toastNotifierUpdate: (s: NotificationOptions, a: ComposePayload<NotificationOptions>) => { toastId?: string | undefined; isShowMessage: boolean; theme: "colored" | "light" | "dark"; variantType: "successTopCenter" | "successTopRight" | "errorTopCenter"; messageText: string; autoClose: number; hideProgressBar: boolean; closeOnClick: boolean; limit: number; component: any; transition: "bounce" | "fade" | "flip" | "rotate" | "slide" | "zoom"; clearQueue: boolean; delay?: number | undefined; closeButton: boolean; updateToast: boolean; }; }>, notifiersSelectors: { getNotifier: (s: NotificationOptions) => NotificationOptions; }; export {};