Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ITracker<IEventsList>

Type parameters

Hierarchy

  • INode<IEventsList>

Indexable

[key: string]: any

Index

Constructors

constructor

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

    • Optional id: string

    Returns any

Properties

current

current: any[]

emitter

emitter: EventEmitter

fetch

fetch: function

Type declaration

    • (): Promise<any[]> | any[]
    • Returns Promise<any[]> | any[]

id

id: string

idField

idField: string

indexes

indexes: object

Type declaration

  • [id: string]: number

isDestroyed

isDestroyed: boolean

Optional query

query: any

Optional update

update: any[]

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

isChanged

  • isChanged(previous: any, current: any): boolean

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

set

  • set(update: any[]): void

Generated using TypeDoc