RootStat
Class in @sascom/commonjs.
API catalogue · @sascom/commonjs · Class
The root of a statistics tree
Inheritance and interfaces#
Members#
| Member | Kind | Description |
|---|---|---|
| constructor | Method | overwrites: GroupStat.constructor |
| key | Property | inheritedFrom: GroupStat.key |
| name | Property | inheritedFrom: GroupStat.name |
| add | Method | Adds a child statistic and returns it inheritedFrom: GroupStat.add |
constructor#
TypeScript#
constructor(key: string, name: string)overwrites: GroupStat.constructor
Parameters#
| Name | Type | Description |
|---|---|---|
key |
string |
|
name |
string |
key#
TypeScript#
readonly key: stringinheritedFrom: GroupStat.key
name#
TypeScript#
readonly name: stringinheritedFrom: GroupStat.name
add#
Adds a child statistic and returns it
inheritedFrom: GroupStat.add
Type parameters#
| Name | Constraint | Description |
|---|---|---|
T |
Stat |
Parameters#
| Name | Type | Description |
|---|---|---|
stat |
T |