import { BadgesStarData, StarColour } from "./DataToStars"; export type StarProgress = { [category: string]: (false | StarColour)[]; }; export default class ProgressTracker { static previousStars: BadgesStarData | null; /** * @details Compares the previous and current stars in order to determine which stars have been newly achieved. * @param previousStars Previous BadgesStarData * @param currentStars Current BadgesStarData * @returns A StarProgress object that contains the newly achieved stars (if any) */ static compareStars(currentStars: BadgesStarData): StarProgress; }