Interface PluginsMap

A helper interface that holds all supported lifecycle hooks.

Index

Methods

onCoreInit

  • onCoreInit(this: Core, next: Func<void>): void

onMessagePublish

  • onMessagePublish<T>(this: Core, next: Func<void>, message: T): void

onMessageSubscribe

onModuleAdd

onModuleDestroy

  • onModuleDestroy(this: Module, next: Func<void>): void

onModuleInit

  • onModuleInit<TProps>(this: Module, next: Func<void>, props?: TProps): void
  • Invoked when Module.init

    Type parameters

    • TProps

    Parameters

    • this: Module
    • next: Func<void>
    • Optional props: TProps

    Returns void

onModuleReceiveMessage

onModuleReceiveProps

  • onModuleReceiveProps<TProps>(this: Module, next: Func<void>, nextProps: TProps): void

onModuleStart

onModuleStop

  • onModuleStop(this: Core, next: Func<void>, id: string, instanceId?: string): void
  • Invoked when Core.stopModule

    Parameters

    • this: Core
    • next: Func<void>
    • id: string
    • Optional instanceId: string

    Returns void

onModuleSubscribe

  • onModuleSubscribe(this: Module, next: Func<string[]>): string[]