Skip to content

Commit d8a9a45

Browse files
committed
docs(leaderboard): AV.LeaderboardUpdateStrategy
1 parent 8513dba commit d8a9a45

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/leaderboard.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,14 @@ AV.LeaderboardOrder = {
2525
DESCENDING: 'descending',
2626
};
2727

28+
/**
29+
* The update strategy for Leaderboard
30+
* @enum
31+
*/
2832
AV.LeaderboardUpdateStrategy = {
33+
/** Only keep the best statistic. If the leaderboard is in descending order, the best statistic is the highest one. */
2934
BETTER: 'better',
35+
/** Keep the last updated statistic */
3036
LAST: 'last',
3137
};
3238

0 commit comments

Comments
 (0)