Sports Lib API - v17.3.0
    Preparing search index...

    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)

    Index

    Methods