Reference·JavaScript · @sascom/commonjsJavaScript

GroupStat

Class in @sascom/commonjs.

API catalogue · @sascom/commonjs · Class

TypeScript#
class GroupStat

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: string

implementationOf: Stat.key

name#

TypeScript#
readonly name: string

implementationOf: Stat.name

add#

TypeScript#
add<T extends Stat>(stat: T): T

Adds a child statistic and returns it

Type parameters#

Name Constraint Description
T Stat

Parameters#

Name Type Description
stat T