# of-action

[API](https://github.com/ngxs/store/tree/2b39eed60327c3d3f1081124783b49b13ba15fd7/docs/api/README.md) > ["operators/of-action"](/v3.4/api/_operators_of_action_.md)

## External module: "operators/of-action"

### Index

#### Functions

* [createAllowedMap](/v3.4/api/_operators_of_action_.md#createallowedmap)
* [filterStatus](/v3.4/api/_operators_of_action_.md#filterstatus)
* [mapAction](/v3.4/api/_operators_of_action_.md#mapaction)
* [ofAction](/v3.4/api/_operators_of_action_.md#ofaction)
* [ofActionCanceled](/v3.4/api/_operators_of_action_.md#ofactioncanceled)
* [ofActionDispatched](/v3.4/api/_operators_of_action_.md#ofactiondispatched)
* [ofActionErrored](/v3.4/api/_operators_of_action_.md#ofactionerrored)
* [ofActionOperator](/v3.4/api/_operators_of_action_.md#ofactionoperator)
* [ofActionSuccessful](/v3.4/api/_operators_of_action_.md#ofactionsuccessful)

### Functions

#### createAllowedMap <a href="#createallowedmap" id="createallowedmap"></a>

▸ **createAllowedMap**(types: `any`*\[]*): `object`

*Defined in* [*operators/of-action.ts:76*](https://github.com/ngxs/store/blob/7d8137d/packages/store/src/operators/of-action.ts#L76)

**Parameters:**

| Name  | Type     |
| ----- | -------- |
| types | `any`\[] |

**Returns:** `object`

#### filterStatus <a href="#filterstatus" id="filterstatus"></a>

▸ **filterStatus**(allowedTypes: `object`, status?: [*ActionStatus*](https://github.com/ngxs/store/tree/2b39eed60327c3d3f1081124783b49b13ba15fd7/docs/api/enums/_actions_stream_.actionstatus.md)): `MonoTypeOperatorFunction`<[ActionContext](https://github.com/ngxs/store/tree/2b39eed60327c3d3f1081124783b49b13ba15fd7/docs/api/interfaces/_actions_stream_.actioncontext.md)>

*Defined in* [*operators/of-action.ts:64*](https://github.com/ngxs/store/blob/7d8137d/packages/store/src/operators/of-action.ts#L64)

**Parameters:**

| Name              | Type                                                                                                                                        |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| allowedTypes      | `object`                                                                                                                                    |
| `Optional` status | [ActionStatus](https://github.com/ngxs/store/tree/2b39eed60327c3d3f1081124783b49b13ba15fd7/docs/api/enums/_actions_stream_.actionstatus.md) |

**Returns:** `MonoTypeOperatorFunction`<[ActionContext](https://github.com/ngxs/store/tree/2b39eed60327c3d3f1081124783b49b13ba15fd7/docs/api/interfaces/_actions_stream_.actioncontext.md)>

#### mapAction <a href="#mapaction" id="mapaction"></a>

▸ **mapAction**(): `OperatorFunction`<[ActionContext](https://github.com/ngxs/store/tree/2b39eed60327c3d3f1081124783b49b13ba15fd7/docs/api/interfaces/_actions_stream_.actioncontext.md), `any`>

*Defined in* [*operators/of-action.ts:72*](https://github.com/ngxs/store/blob/7d8137d/packages/store/src/operators/of-action.ts#L72)

**Returns:** `OperatorFunction`<[ActionContext](https://github.com/ngxs/store/tree/2b39eed60327c3d3f1081124783b49b13ba15fd7/docs/api/interfaces/_actions_stream_.actioncontext.md), `any`>

#### ofAction <a href="#ofaction" id="ofaction"></a>

▸ **ofAction**<`T`>(allowedType: `any`): `OperatorFunction`<`any`, `T`>

▸ **ofAction**<`T`>(...allowedTypes: `any`*\[]*): `OperatorFunction`<`any`, `T`>

*Defined in* [*operators/of-action.ts:6*](https://github.com/ngxs/store/blob/7d8137d/packages/store/src/operators/of-action.ts#L6)

RxJS operator for selecting out specific actions.

This will grab actions that have just been dispatched as well as actions that have completed

**Type parameters:**

**T**

**Parameters:**

| Name        | Type  |
| ----------- | ----- |
| allowedType | `any` |

**Returns:** `OperatorFunction`<`any`, `T`>

*Defined in* [*operators/of-action.ts:7*](https://github.com/ngxs/store/blob/7d8137d/packages/store/src/operators/of-action.ts#L7)

RxJS operator for selecting out specific actions.

This will grab actions that have just been dispatched as well as actions that have completed

**Type parameters:**

**T**

**Parameters:**

| Name                | Type     |
| ------------------- | -------- |
| `Rest` allowedTypes | `any`\[] |

**Returns:** `OperatorFunction`<`any`, `T`>

#### ofActionCanceled <a href="#ofactioncanceled" id="ofactioncanceled"></a>

▸ **ofActionCanceled**(...allowedTypes: `any`*\[]*): `(Anonymous function)`

*Defined in* [*operators/of-action.ts:41*](https://github.com/ngxs/store/blob/7d8137d/packages/store/src/operators/of-action.ts#L41)

RxJS operator for selecting out specific actions.

This will ONLY grab actions that have just been canceled

**Parameters:**

| Name                | Type     |
| ------------------- | -------- |
| `Rest` allowedTypes | `any`\[] |

**Returns:** `(Anonymous function)`

#### ofActionDispatched <a href="#ofactiondispatched" id="ofactiondispatched"></a>

▸ **ofActionDispatched**(...allowedTypes: `any`*\[]*): `(Anonymous function)`

*Defined in* [*operators/of-action.ts:23*](https://github.com/ngxs/store/blob/7d8137d/packages/store/src/operators/of-action.ts#L23)

RxJS operator for selecting out specific actions.

This will ONLY grab actions that have just been dispatched

**Parameters:**

| Name                | Type     |
| ------------------- | -------- |
| `Rest` allowedTypes | `any`\[] |

**Returns:** `(Anonymous function)`

#### ofActionErrored <a href="#ofactionerrored" id="ofactionerrored"></a>

▸ **ofActionErrored**(...allowedTypes: `any`*\[]*): `(Anonymous function)`

*Defined in* [*operators/of-action.ts:50*](https://github.com/ngxs/store/blob/7d8137d/packages/store/src/operators/of-action.ts#L50)

RxJS operator for selecting out specific actions.

This will ONLY grab actions that have just thrown an error

**Parameters:**

| Name                | Type     |
| ------------------- | -------- |
| `Rest` allowedTypes | `any`\[] |

**Returns:** `(Anonymous function)`

#### ofActionOperator <a href="#ofactionoperator" id="ofactionoperator"></a>

▸ **ofActionOperator**(allowedTypes: `any`*\[]*, status?: [*ActionStatus*](https://github.com/ngxs/store/tree/2b39eed60327c3d3f1081124783b49b13ba15fd7/docs/api/enums/_actions_stream_.actionstatus.md)): `(Anonymous function)`

*Defined in* [*operators/of-action.ts:54*](https://github.com/ngxs/store/blob/7d8137d/packages/store/src/operators/of-action.ts#L54)

**Parameters:**

| Name              | Type                                                                                                                                        |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| allowedTypes      | `any`\[]                                                                                                                                    |
| `Optional` status | [ActionStatus](https://github.com/ngxs/store/tree/2b39eed60327c3d3f1081124783b49b13ba15fd7/docs/api/enums/_actions_stream_.actionstatus.md) |

**Returns:** `(Anonymous function)`

#### ofActionSuccessful <a href="#ofactionsuccessful" id="ofactionsuccessful"></a>

▸ **ofActionSuccessful**(...allowedTypes: `any`*\[]*): `(Anonymous function)`

*Defined in* [*operators/of-action.ts:32*](https://github.com/ngxs/store/blob/7d8137d/packages/store/src/operators/of-action.ts#L32)

RxJS operator for selecting out specific actions.

This will ONLY grab actions that have just been successfully completed

**Parameters:**

| Name                | Type     |
| ------------------- | -------- |
| `Rest` allowedTypes | `any`\[] |

**Returns:** `(Anonymous function)`


---

# 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://www.ngxs.io/v3.4/api/_operators_of_action_.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.
