# Custom Type Delimiters

In the case you need to use different type delimiters, you can configure this globally for all actions. By default, the middleware uses a underscore `_` delimiter.

For example, given `FOO` async action, `PENDING` type will be appended with a underscore `_` delimiter.

```javascript
{
  type: 'FOO_PENDING'
}
```

To change the default, supply an optional configuration object to the middleware with the `promiseTypeDelimiter` property. This property accepts a new string to use as the delimiter.

```javascript
import { createPromise } from 'redux-promise-middleware';

applyMiddleware(
  createPromise({
    promiseTypeDelimiter: '/'
  })
)
```

With this configuration, given `FOO` async action, the type will be appended with a forward slash `/` delimiter.

```javascript
{
  type: 'FOO/PENDING'
}
```

Finally, if you are using a library like [type-to-reducer](https://github.com/tomatau/type-to-reducer), you'll also need to [configure it to handle the custom delimiter\]](https://github.com/tomatau/type-to-reducer#custom-type-delimiter).


---

# 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://pburtchaell.gitbook.io/redux-promise-middleware/guides/custom-delimiters.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.
