Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IChannel<IEventsList>

Type parameters

Hierarchy

  • INode<IEventsList>

Indexable

[key: string]: any

Index

Constructors

constructor

  • new IChannel(id?: string): any
  • Parameters

    • Optional id: string

    Returns any

Properties

emitter

emitter: EventEmitter

Optional getter

getter: IChannelGetter<any>

id

id: string

isDestroyed

isDestroyed: boolean

isReading

isReading: boolean

Methods

destroy

  • destroy(): void
  • Returns void

emit

  • emit<IE>(eventName: IE, data: IEventsList[IE]): this
  • Type parameters

    • IE: keyof IEventsList

    Parameters

    • eventName: IE
    • data: IEventsList[IE]

    Returns this

generateId

  • generateId(): string
  • Returns string

get

  • get(): Promise<any>

got

  • got(data?: Promise<any> | any): void

off

  • off<IE>(eventName: IE, listener: function): this
  • Type parameters

    • IE: keyof IEventsList

    Parameters

    • eventName: IE
    • listener: function
        • (data: IEventsList[IE]): void
        • Parameters

          • data: IEventsList[IE]

          Returns void

    Returns this

on

  • on<IE>(eventName: IE, listener: function): this
  • Type parameters

    • IE: keyof IEventsList

    Parameters

    • eventName: IE
    • listener: function
        • (data: IEventsList[IE]): void
        • Parameters

          • data: IEventsList[IE]

          Returns void

    Returns this

once

  • once<IE>(eventName: IE, listener: function): this
  • Type parameters

    • IE: keyof IEventsList

    Parameters

    • eventName: IE
    • listener: function
        • (data: IEventsList[IE]): void
        • Parameters

          • data: IEventsList[IE]

          Returns void

    Returns this

ready

  • ready(): void

Generated using TypeDoc