Skip to content

Interface: Extension ​

What an extension's entry module exports as its default.

Properties ​

activate ​

readonly activate: (host) => void | Promise<void>

Runs when the extension starts, with the host API.

Parameters ​

host ​

ExtensionHost

Returns ​

void | Promise<void>


deactivate? ​

readonly optional deactivate?: () => void | Promise<void>

Runs before the extension stops, to release what it holds.

Returns ​

void | Promise<void>

Released under the MIT License. Development supported by Ensita. YapYap is unofficial and not affiliated with WhatsApp or Meta.