> For the complete documentation index, see [llms.txt](https://www.ngxs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.ngxs.io/v3.4/api/_decorators_action_.md).

# @Action

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

## External module: "decorators/action"

### Index

#### Functions

* [Action](/v3.4/api/_decorators_action_.md#action)

### Functions

#### Action <a href="#action" id="action"></a>

▸ **Action**(actions:  `any` *|* `any`*\[]*, options?: [*ActionOptions*](https://github.com/ngxs/store/tree/2b39eed60327c3d3f1081124783b49b13ba15fd7/docs/api/interfaces/_symbols_.actionoptions.md)): `(Anonymous function)`

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

Decorates a method with a action information.

**Parameters:**

| Name               | Type                                                                                                                                        |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
| actions            | `any` \| `any`\[]                                                                                                                           |
| `Optional` options | [ActionOptions](https://github.com/ngxs/store/tree/2b39eed60327c3d3f1081124783b49b13ba15fd7/docs/api/interfaces/_symbols_.actionoptions.md) |

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