# RuleAction

The RuleAction type of the TypeScript SDK, part of FilterRule.

```ts
/** The API's `RuleAction`, as the document describes it. */
type RuleAction = RuleActionFileInto | RuleActionAddFlag | RuleActionRedirect | RuleActionDiscard
```

## Used in

[`FilterRule`](/docs/sdks/typescript/types/filter-rule).
