Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IManager<IN, IEventsList>

Type parameters

Hierarchy

Indexable

[key: string]: any

Index

Constructors

constructor

Properties

List

List: TClass<IN>

Current instance of a List class.

emitter

emitter: EventEmitter

Native nodejs EventEmitter.

id

id: string

Unic string for this node.

isDestroyed

isDestroyed: boolean

Does this node took the destroy command?

Methods

add

  • add(node: IN): this

destroy

  • destroy(): void

emit

  • emit<IE>(eventName: IE, data: IEventsList[IE]): this
  • Emit event with custom data and "emit" event with data { eventName: string, data: any }

    Type parameters

    • IE: keyof IEventsList

    Parameters

    • eventName: IE
    • data: IEventsList[IE]

    Returns this

generateId

  • generateId(): string

off

  • off<IE>(eventName: IE, listener: function): this
  • Removes the specified listener from the listener array for the event named eventName.

    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
  • Adds the listener export function to the end of the listeners array for the event named eventName.

    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
  • Adds a one-time listener export function for the event named eventName.

    Type parameters

    • IE: keyof IEventsList

    Parameters

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

          • data: IEventsList[IE]

          Returns void

    Returns this

remove

  • remove(node: IN): this

wrap

  • wrap(node: IN): this

Generated using TypeDoc