Search
Preparing search index...
The search index is not available
AncientSouls Documentation
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"ancient-tracker/src/lib/tracker"
Tracker
Class Tracker<IEventsList>
Type parameters
IEventsList
:
ITrackerEventsList
Hierarchy
ITracker
Tracker
Indexable
[
key:
string
]:
any
Index
Constructors
constructor
Properties
current
emitter
fetch
id
id
Field
indexes
is
Destroyed
query
update
Methods
destroy
emit
generate
Id
get
is
Changed
off
on
once
set
Constructors
Static
constructor
new
Tracker
(
id
?:
string
)
:
any
Parameters
Optional
id:
string
Returns
any
Properties
Static
current
current
:
any
[]
Static
emitter
emitter
:
EventEmitter
Static
fetch
fetch
:
function
Type declaration
(
)
:
Promise
<
any
[]
>
|
any
[]
Returns
Promise
<
any
[]
>
|
any
[]
Static
id
id
:
string
Static
id
Field
id
Field
:
string
Static
indexes
indexes
:
object
Type declaration
[
id:
string
]:
number
Static
is
Destroyed
is
Destroyed
:
boolean
Static
Optional
query
query
:
any
Static
Optional
update
update
:
any
[]
Methods
Static
destroy
destroy
(
)
:
void
Returns
void
Static
emit
emit<IE>
(
eventName
:
IE
, data
:
IEventsList[IE]
)
:
this
Type parameters
IE
:
keyof IEventsList
Parameters
eventName:
IE
data:
IEventsList[IE]
Returns
this
Static
generate
Id
generate
Id
(
)
:
string
Returns
string
Static
get
get
(
handler
?:
function
)
:
Promise
<
ITrackerChanges
>
Parameters
Optional
handler:
function
(
ITrackerChange
:
any
)
:
ITrackerChange
Parameters
ITrackerChange:
any
Returns
ITrackerChange
Returns
Promise
<
ITrackerChanges
>
Static
is
Changed
is
Changed
(
previous
:
any
, current
:
any
)
:
boolean
Parameters
previous:
any
current:
any
Returns
boolean
Static
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
Static
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
Static
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
Static
set
set
(
update
:
any
[]
)
:
void
Parameters
update:
any
[]
Returns
void
Globals
"ancient-
tracker/src/lib/tracker"
Tracker
constructor
current
emitter
fetch
id
id
Field
indexes
is
Destroyed
query
update
destroy
emit
generate
Id
get
is
Changed
off
on
once
set
ITracker
ITracker
Change
ITracker
Change
Event
ITracker
Events
List
ITracker
Changes
TTracker
Mixed
Tracker
mixin
Generated using
TypeDoc