UNPKG

react-native-lightspeedsdk

Version:
29 lines (24 loc) 503 B
'use strict'; type PanelistAchievementMap = { name:string, date:string, points:number, surveyId:number }; /** * Represents an immutable Achievement History */ class PanelistAchievement{ name:string; date:string; points:number; surveyId:numer; constructor(map: PanelistAchievementMap) { this.name = map.name; this.date = map.date; this.points = map.points; this.surveyId = map.surveyId; Object.freeze(this); } } module.exports = PanelistAchievement;