UNPKG

@drieam/common

Version:

Default Drieam api wrapper

15 lines (14 loc) 466 B
import { ApiOptions, BaseAction } from "@drieam/api"; declare type ToastsActions = "delete" | "save" | "failed" | "offline"; declare type ToastProps = { [key in ToastsActions]: any; }; export declare const APP_ONLINE = "APP_ONLINE"; export declare type AppOnlineAction = BaseAction & { payload: boolean; }; export declare type StoreOptions = Partial<{ toasts: Partial<ToastProps>; withErrorHandler: boolean; }> & ApiOptions; export {};