Options
All
  • Public
  • Public/Protected
  • All
Menu

Defines the typed signature for an event. This type is distinct from Event itself as it is a backwards compatible decorator whose job is to create and enforce type signatures using the newer, shortened event syntax.

Type parameters

  • T

Hierarchy

  • TypedEvent

Implemented by

Index

Properties

isPublishing

isPublishing: boolean

name

name: string

publish

publish: T

Methods

clear

  • clear(): void
  • Returns void

getSubscriptionHandlerByToken

  • getSubscriptionHandlerByToken(token: string): function
  • Parameters

    • token: string

    Returns function

      • (args: T): void
      • Parameters

        • args: T

        Returns void

once

  • once(scope: any, implementation: T): string
  • Parameters

    • scope: any
    • implementation: T

    Returns string

subscribe

  • subscribe(scope: any, implementation: T): string
  • Parameters

    • scope: any
    • implementation: T

    Returns string

unsubscribe

  • unsubscribe(token: string): boolean
  • Parameters

    • token: string

    Returns boolean