Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EventBuilderConfig<Func>

A configuration for a single event

Type parameters

  • Func: function

Hierarchy

  • EventBuilderConfig

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private args

args: Array<Parameters<Func>>

The arguments with which call the handler

Private eventHandler

eventHandler: Func

The event handler to call

Methods

fire

  • fire(): void

fireIf

  • fireIf(condition: boolean): void
  • Fire the event handler iff the condition evaluates to true with the supplied parameters.

    Parameters

    • condition: boolean

      A boolean condition to check to handler should be called or not

    Returns void

toArgs

  • toArgs(...args: Parameters<Func>): this
  • Associate the parameters with which call the handler

    Parameters

    • Rest ...args: Parameters<Func>

      The arguments with which the handler will be called

    Returns this

Generated using TypeDoc