EventsMap
An Object you provide to Redux Beacon to map action types to eventDefinitions.

Syntax

1
import {
2
eventForActionA,
3
eventForActionB,
4
eventForAllActions,
5
} from './event-definitions';
6
7
const eventsMap = {
8
'ACTION_A': eventForActionA,
9
'ACTION_B': eventForActionB,
10
'*': eventForAllActions,
11
};
Copied!

Rules

    Each key in the eventsMap must correspond to an action type.
    Each property in the eventsMap must be a valid
    The "*" key is special and can be used to match any action type.

Typescript Type

1
import { EventsMap } from 'redux-beacon';
Copied!

Usage