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