Reference·JavaScript · @sascom/commonjsJavaScript

RootStat

Class in @sascom/commonjs.

API catalogue · @sascom/commonjs · Class

TypeScript#
class RootStat

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

inheritedFrom: GroupStat.key

name#

TypeScript#
readonly name: string

inheritedFrom: GroupStat.name

add#

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

Adds a child statistic and returns it

inheritedFrom: GroupStat.add

Type parameters#

Name Constraint Description
T Stat

Parameters#

Name Type Description
stat T