A TiltifyLeaderboardEntry narrowed to monetary campaigns only.
TiltifyLeaderboardEntry.amount is TiltifyAmount | TiltifyMeasuredUnit
because Tiltify's leaderboard endpoint also serves fitness campaigns
(steps, miles, minutes). The Play Live leaderboard service filters
fitness rows out server-side before returning, so this fetcher's
response type carries the tighter amount: TiltifyAmount variant.
Consumers get compile-time assurance they can read
entry.amount.currency without narrowing.
A
TiltifyLeaderboardEntrynarrowed to monetary campaigns only.TiltifyLeaderboardEntry.amountisTiltifyAmount | TiltifyMeasuredUnitbecause Tiltify's leaderboard endpoint also serves fitness campaigns (steps, miles, minutes). The Play Live leaderboard service filters fitness rows out server-side before returning, so this fetcher's response type carries the tighteramount: TiltifyAmountvariant. Consumers get compile-time assurance they can readentry.amount.currencywithout narrowing.