# `BB.StateMachine.Transition`
[🔗](https://github.com/beam-bots/bb/blob/main/lib/bb/state_machine/transition.ex#L5)

Payload type for state machine transition events.

# `t`

```elixir
@type t() :: %BB.StateMachine.Transition{from: atom(), to: atom()}
```

# `new`

```elixir
@spec new(
  atom(),
  keyword()
) :: {:ok, BB.Message.t()} | {:error, term()}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
