UNPKG

@xapp/chat-widget

Version:
7 lines (6 loc) 348 B
import 'rollup-plugin-inject-process-env'; import { Dispatch } from "react"; import { ActionType } from "../ChatAction"; import { ChatState } from "../ChatState"; export type AsyncActionType = (dispatch: Dispatch<ActionType | AsyncActionType>, getState: () => ChatState) => void; export type ChatDispatch = Dispatch<ActionType | AsyncActionType>;