Preparing search index...
The search index is not available
@varuntiwari/tomperjs
@varuntiwari/tomperjs
Collection
Class Collection<T, K>
Type Parameters
T
K
Hierarchy
Collection
Index
Constructors
constructor
Properties
deserialize
events
models
root
Url
Accessors
on
trigger
Methods
fetch
Constructors
constructor
new
Collection
<
T
,
K
>
(
rootUrl
:
string
, deserialize
:
(
(
json
:
K
)
=>
T
)
)
:
Collection
<
T
,
K
>
Type Parameters
T
K
Parameters
rootUrl:
string
deserialize:
(
(
json
:
K
)
=>
T
)
(
json
:
K
)
:
T
Parameters
json:
K
Returns
T
Returns
Collection
<
T
,
K
>
Properties
deserialize
deserialize
:
(
(
json
:
K
)
=>
T
)
Type declaration
(
json
:
K
)
:
T
Parameters
json:
K
Returns
T
events
events
:
Eventing
= ...
models
models
:
T
[]
= []
root
Url
root
Url
:
string
Accessors
on
get
on
(
)
:
(
(
eventName
:
string
, callback
:
Callback
)
=>
void
)
Returns
(
(
eventName
:
string
, callback
:
Callback
)
=>
void
)
(
eventName
:
string
, callback
:
Callback
)
:
void
Parameters
eventName:
string
callback:
Callback
Returns
void
trigger
get
trigger
(
)
:
(
(
eventName
:
string
)
=>
void
)
Returns
(
(
eventName
:
string
)
=>
void
)
(
eventName
:
string
)
:
void
Parameters
eventName:
string
Returns
void
Methods
fetch
fetch
(
)
:
void
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
@varuntiwari/tomperjs
Collection
constructor
deserialize
events
models
root
Url
on
trigger
fetch
Generated using
TypeDoc