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

    Interface DataInterface<TValue>

    A typed metric value. Data objects retain the canonical metric type and unit alongside their value.

    interface DataInterface<TValue = DefaultDataValue> {
        getDisplayType(): string;
        getDisplayUnit(): string;
        getDisplayValue(): | string
        | number
        | boolean
        | DataPositionInterface
        | string[];
        getType(): string;
        getUnit(): string;
        getUnitSystem(): UnitSystem;
        getValue(_formatForDataType?: string): TValue;
        isValueTypeValid(value: unknown): boolean;
        setValue(value: TValue): this;
        toJSON(): DataJSONInterface;
    }

    Type Parameters

    Hierarchy (View Summary)

    Implemented by

    Index

    Methods