# PhaseEvents

`type` in `services` · v0.8.2

<https://docs.seedcord.org/packages/services/0.8.2/types/phase-events>

Creates event names for lifecycle managers with phase numbers and actions

## Declaration

```ts
type PhaseEvents<
    Prefix extends string,
    Phases extends number[]
> =
    | `phase:${IntClosedRange<1, Phases["length"]>}:${TypedExclude<LifecycleAction, "error">}`
    | `${Prefix}:${LifecycleAction}`;
```
