<commit_before># Type suffix configuration

In the case you need to use different type sufixes, you can configure this globally (all actions) or locally (action-by-action).

To globally change suffixes, you can supply an optional configuration object to the middleware. This object accepts an array of suffix strings that can be used instead of the default with a key of `promiseTypeSuffixes`.

```js
applyMiddleware(
  promiseMiddleware({
    promiseTypeSuffixes: ['LOADING', 'SUCCESS', 'ERROR']
  })
)
```

Alternatively, you can locally describe the type suffixes to use.

```js
const foo = () => ({
  type: 'TYPE',
  payload: new Promise(),
  meta: {
    promiseTypeSuffixes: ['PENDING', 'SUCCESS', 'ERROR']
  }
});
```<commit_msg>Use Promise.resolve() in custom suffixes example<commit_after># Type suffix configuration

In the case you need to use different type sufixes, you can configure this globally (all actions) or locally (action-by-action).

To globally change suffixes, you can supply an optional configuration object to the middleware. This object accepts an array of suffix strings that can be used instead of the default with a key of `promiseTypeSuffixes`.

```js
applyMiddleware(
  promiseMiddleware({
    promiseTypeSuffixes: ['LOADING', 'SUCCESS', 'ERROR']
  })
)
```

Alternatively, you can locally describe the type suffixes to use.

```js
const foo = () => ({
  type: 'TYPE',
  payload: Promise.resolve(),
  meta: {
    promiseTypeSuffixes: ['PENDING', 'SUCCESS', 'ERROR']
  }
});
```
{'fraction_non_alphanumeric': 0.10868124585818423, 'fraction_numerical': 0.0, 'mean_word_length': 4.655430711610487, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1530368', 'n_tokens_mistral': 429, 'n_tokens_neox': 424, 'n_words': 182}