Options
All
  • Public
  • Public/Protected
  • All
Menu

External module seng-event/lib/eventHasType

Index

Functions

Functions

eventHasType

  • eventHasType<TType>(event: BaseEvent<any, any>, type: TType): boolean
  • Checks if the given BaseEvent has a the given type and if so, asserts to the compiler that it is a BaseEvent with that specific type as the type property.

    Type parameters

    • TType: string

    Parameters

    • event: BaseEvent<any, any>

      The event to check

    • type: TType

      A string literal type

    Returns boolean

Generated using TypeDoc