ENGLISH·COURSE API
    Preparing search index...
    ModulePrizeReading:
        | { hasPrize: false }
        | {
            hasPrize: true;
            prize: PrizeId;
            state: PrizeState;
            ticketsEarned: number;
            ticketCount: number;
        }

    One module's prize as the prize counter reads it, or the fact that the module has none because it holds no lessons.

    Type Declaration

    • { hasPrize: false }
    • {
          hasPrize: true;
          prize: PrizeId;
          state: PrizeState;
          ticketsEarned: number;
          ticketCount: number;
      }
      • hasPrize: true
      • prize: PrizeId

        The toy the module's tickets redeem.

      • state: PrizeState

        Claimed, ready to claim, collecting tickets, or locked.

      • ticketsEarned: number

        Lessons of the module that have earned their ticket.

      • ticketCount: number

        Lessons in the module — one ticket each.