Sports Lib API - v17.3.0
GitHub
npm
Preparing search index...
API
StatsClassInterface
Interface StatsClassInterface
Contract implemented by models that expose typed summary metrics keyed by canonical data type.
interface
StatsClassInterface
{
addStat
(
stat
:
DataInterface
<
unknown
>
)
:
void
;
clearStats
()
:
void
;
getDistance
()
:
DataDistance
;
getStat
<
TValue
=
DefaultDataValue
>
(
statType
:
string
,
)
:
void
|
DataInterface
<
TValue
>
;
getStats
<
TValue
=
DefaultDataValue
>
()
:
Map
<
string
,
DataInterface
<
TValue
>
>
;
getStatsAsArray
<
TValue
=
DefaultDataValue
>
()
:
DataInterface
<
TValue
>
[]
;
removeStat
(
statType
:
string
)
:
void
;
setDistance
(
distance
:
DataDistance
)
:
void
;
}
Hierarchy (
View Summary
)
StatsClassInterface
ActivityInterface
EventInterface
RouteFileInterface
RouteInterface
LapInterface
Index
Methods
add
Stat
clear
Stats
get
Distance
get
Stat
get
Stats
get
Stats
As
Array
remove
Stat
set
Distance
Methods
add
Stat
addStat
(
stat
:
DataInterface
<
unknown
>
)
:
void
Parameters
stat
:
DataInterface
<
unknown
>
Returns
void
clear
Stats
clearStats
()
:
void
Returns
void
get
Distance
getDistance
()
:
DataDistance
Returns
DataDistance
get
Stat
getStat
<
TValue
=
DefaultDataValue
>
(
statType
:
string
,
)
:
void
|
DataInterface
<
TValue
>
Type Parameters
TValue
=
DefaultDataValue
Parameters
statType
:
string
Returns
void
|
DataInterface
<
TValue
>
get
Stats
getStats
<
TValue
=
DefaultDataValue
>
()
:
Map
<
string
,
DataInterface
<
TValue
>
>
Type Parameters
TValue
=
DefaultDataValue
Returns
Map
<
string
,
DataInterface
<
TValue
>
>
get
Stats
As
Array
getStatsAsArray
<
TValue
=
DefaultDataValue
>
()
:
DataInterface
<
TValue
>
[]
Type Parameters
TValue
=
DefaultDataValue
Returns
DataInterface
<
TValue
>
[]
remove
Stat
removeStat
(
statType
:
string
)
:
void
Parameters
statType
:
string
Returns
void
set
Distance
setDistance
(
distance
:
DataDistance
)
:
void
Parameters
distance
:
DataDistance
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
add
Stat
clear
Stats
get
Distance
get
Stat
get
Stats
get
Stats
As
Array
remove
Stat
set
Distance
GitHub
npm
Sports Lib API - v17.3.0
Loading...
Contract implemented by models that expose typed summary metrics keyed by canonical data type.