Documents injecute 1.x · Migrating from 0.x
Skip to content

Type Alias: LifecycleState ​

LifecycleState = "started" | "stopping" | "stopped"

Defined in: src/utils/lifecycle.ts:110

The state of a RunningLifecycle.

Example ​

ts
app.get('health').addCheck(() => running.state === 'started');

Released under the MIT License.