Options
All
  • Public
  • Public/Protected
  • All
Menu

Plugins allow for extending out the functionality of Amagaki.

The plugins class allow for registering new plugins and triggering hooks from within Amagaki to allow plugin interaction.

Hierarchy

  • Plugins

Index

Constructors

Properties

plugins: PluginComponent[]
pod: Pod
HookPostfix: string = 'Hook'

Methods

  • trigger(hookName: string, ...args: any[]): Promise<void>
  • Triggers a hook handler on each of the registered plugins passing along the provided arguments.

    Parameters

    • hookName: string

      Name of the hook being triggered.

    • Rest ...args: any[]

      Any arguments that need to be passed to the triggered event handler.

    Returns Promise<void>

  • triggerSync(hookName: string, ...args: any[]): void
  • Triggers a hook handler on each of the registered plugins passing along the provided arguments.

    Parameters

    • hookName: string

      Name of the hook being triggered.

    • Rest ...args: any[]

      Any arguments that need to be passed to the triggered event handler.

    Returns void

Generated using TypeDoc