# ActionId (/docs/api/actions/type-aliases/ActionId)



```ts
type ActionId<Actions> = keyof Actions & string;
```

The Action ids of a `defineActions` result, as a union of literals. Pass it as the second
argument to `Rule`, `Rule<Questions, ActionId<typeof actions>>`, so a Rule naming an Action
you did not define fails to compile.

## Type Parameters [#type-parameters]

| Type Parameter                                                              |
| --------------------------------------------------------------------------- |
| `Actions` *extends* [`ActionSet`](/docs/api/actions/type-aliases/ActionSet) |
