---
title: "EventEmitterOptions | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Interface EventEmitterOptions

interface EventEmitterOptions {  
    [captureRejections](#capturerejections)?: boolean;  
}

#### Hierarchy ([View Summary](https://docs.maptiler.com/sdk-js/api-reference/hierarchy/#Externals.EventEmitterOptions))

-   EventEmitterOptions
    -   [EventEmitterAsyncResourceOptions](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.EventEmitter.EventEmitterAsyncResourceOptions/)

##### Index

### Properties[](#properties)

[captureRejections?](#capturerejections)

## Properties[](#properties-1)

### `Optional`captureRejections[](#capturerejections)

captureRejections?: boolean

It enables [automatic capturing of promise rejection](https://nodejs.org/docs/latest-v25.x/api/events.html#capture-rejections-of-promises).

#### Default[](#default)

```typescript
false
```
