@botmesh/core - v2.0.0-alpha.2
    Preparing search index...

    Interface HookContextMap

    Context type of each built-in hook event. Augment it (declaration merging) to type the hooks of a plugin's custom event:

    declare module '@botmesh/core' {
    interface HookContextMap { 'crm.lead': { leadId: string } }
    }
    bot.after('crm.lead', (lead) => lead.leadId) // typed
    interface HookContextMap {
        message: MessageContext;
        send: SendHookContext;
        connection: ConnectionUpdate;
        group: GroupEvent;
        call: CallEvent;
        presence: PresenceEvent;
        reaction: InboundReaction;
        poll: PollVote;
        status: DeliveryStatus;
    }
    Index
    connection: ConnectionUpdate
    group: GroupEvent
    call: CallEvent
    presence: PresenceEvent
    reaction: InboundReaction
    poll: PollVote