@intisy/bayonet
    Preparing search index...

    Interface Plugin

    What a plugin's entry module exports.

    Each hook is awaited individually by the host under its own timeout, so a plugin that throws or hangs is quarantined on its own rather than taking a host or a sibling with it.

    interface Plugin {
        activate(context: PluginContext): void | Promise<void>;
        deactivate(): void | Promise<void>;
        install?(context: PluginContext): void | Promise<void>;
        repair?(context: PluginContext): void | Promise<void>;
    }
    Index
    • Supplies the implementation behind every capability the manifest declares.

      Parameters

      • context: PluginContext

        this activation's host-supplied services and metadata

      Returns void | Promise<void>

    • Releases whatever activate took: timers, watchers, child processes.

      Returns void | Promise<void>

    • Runs once after the first deploy.

      Parameters

      • context: PluginContext

        this activation's host-supplied services and metadata

      Returns void | Promise<void>

    • Runs on demand from a host, to put a broken installation right.

      Parameters

      • context: PluginContext

        this activation's host-supplied services and metadata

      Returns void | Promise<void>