Skip to content
Interfacecore/pluginv0.10.0

PluginLifecycleSpec

Sets when a plugin's lifecycle methods run. Pass it as the second argument to super(). Omit a field to keep its default.

See also:StartupPhase, ShutdownPhase

interface PluginLifecycleSpec

dispose

Defaults to ShutdownPhase.Disconnect and 10000ms.

dispose?: { phase?: ShutdownPhase; timeout?: number; }

init

Defaults to StartupPhase.Configuration and 15000ms. Set the phase to Ready and init() runs ahead of every plugin's ready().

init?: { phase?: StartupPhase; timeout?: number; }

ready

ready() always runs in StartupPhase.Ready. Defaults to a 15000ms timeout.

ready?: { timeout?: number; }