Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SyncHook<T>

Type Parameters

  • T

Hierarchy

  • SyncHook

Index

Constructors

Properties

Methods

Constructors

Properties

_listeners: any[]

Methods

  • call(params: T): void
  • dispatch event 执行handler

    memberof

    Node

    Parameters

    • params: T

    Returns void

  • tap(name: string, handler: ((data: T) => void)): void
  • on 注册handler

    memberof

    EventEmitter

    Parameters

    • name: string
    • handler: ((data: T) => void)
        • (data: T): void
        • Parameters

          • data: T

          Returns void

    Returns void

  • untap(handler: string): void
  • off 注销handler

    memberof

    EventEmitter

    Parameters

    • handler: string

    Returns void

  • untapAll(): void
  • Returns void

Generated using TypeDoc