# EventsMap

An `Object` you provide to Redux Beacon to map action types to [eventDefinitions](/redux-beacon/index-1/event-definition.md).

## Syntax

```javascript
import {
  eventForActionA,
  eventForActionB,
  eventForAllActions,
} from './event-definitions';

const eventsMap = {
  'ACTION_A': eventForActionA,
  'ACTION_B': eventForActionB,
  '*': eventForAllActions,
};
```

## Rules

* Each key in the eventsMap must correspond to an action type.
* Each property in the eventsMap must be a valid

  [eventDefinition](/redux-beacon/index-1/event-definition.md).
* The `"*"` key is special and can be used to match any action type.

## Typescript Type

```typescript
import { EventsMap } from 'redux-beacon';
```

## Usage

* [Getting Started](/redux-beacon/getting-started-redux-users.md)
* [Examples & Recipes](https://github.com/rangle/redux-beacon/tree/483884ebd74e2aab15ab9e350894e5fc68b4e309/docs/recipes/index.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rangle.gitbook.io/redux-beacon/index-1/events-map.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
