ducks.alerts.Actions.d.ts Maven / Gradle / Ivy
The newest version!
import { Action } from '../Action'
import { Key } from './constants'
import { Alert } from './Alerts'
type AlertPayload = {
key: Key
alert: Alert
alerts?: Alert[]
}
type AlertsPayload = {
key: Key
alert?: Alert
alerts: Alert[]
}
type RemovePayload = {
key: Key
id: string
}
type RemoveAllPayload = {
key: Key
}
type StopRemovingPayload = {
key: Key
id: string
}
export type Add = Action
export type AddMulti = Action
export type Remove = Action
export type RemoveAll = Action
export type StopRemoving = Action