Vairified TypeScript SDK - v0.3.1
    Preparing search index...

    Class SportRating

    A player's ratings for a single sport.

    The top-level rating / abbr is the primary rating for that sport (conventionally the overall-open bracket). Every category × age bracket the player has played is also available via get, has, subscript-style access, and iteration.

    const pb = member.sport.get('pickleball');
    if (pb) {
    console.log(pb.rating, pb.abbr); // 3.915 VO
    console.log(pb.get('overall-open')?.rating); // 3.915
    console.log(pb.has('singles-40+')); // false
    console.log(pb.size); // 3
    for (const [key, split] of pb) {
    console.log(key, split.rating);
    }
    }
    Index

    Accessors

    Constructors

    Methods

    Properties

    Accessors

    Constructors

    Methods

    • Whether the player has a rating for the given split key.

      Parameters

      • key: string

      Returns boolean

    • All split keys the player has ratings for.

      Returns IterableIterator<string>

    Properties

    rating: number

    Primary rating for this sport.

    abbr: string

    Category abbreviation for the primary rating (e.g. 'VO').