Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Pluggable<CustomPlugin, Lifecycle, LifecycleHooks>

Type parameters

Hierarchy

  • Pluggable

Index

Constructors

  • new Pluggable<CustomPlugin, Lifecycle, LifecycleHooks>(lifecycles?: string[], lifecycleHooks: LifecycleHooks): Pluggable<CustomPlugin, Lifecycle, LifecycleHooks>

Properties

lifecycleHooks: LifecycleHooks
lifecycles: string[] = []
plugins: { global: Record<string, CustomPlugin>; scope: Record<string, Record<string, CustomPlugin>> } = ...

Type declaration

  • global: Record<string, CustomPlugin>
  • scope: Record<string, Record<string, CustomPlugin>>

Methods

  • callLifecyleMiddlewares<Context>(scopePath: string | string[], lifecycle: Lifecycle, context?: Context): Promise<void>
  • use(plugins: CustomPlugin | CustomPlugin[]): void
  • use(scope: string, plugins: CustomPlugin | CustomPlugin[]): void
  • useGlobalPlugins(plugins: CustomPlugin[]): void
  • useScopePlugins(scope: string, plugins: CustomPlugin[]): void

Generated using TypeDoc