refactor: restore SatisfiesExpression

This commit is contained in:
Acid Chicken (硫酸鶏) 2023-04-01 14:04:48 +09:00
parent 5667f0f839
commit f246699f38
No known key found for this signature in database
GPG key ID: 3E87B98A3F6BAB99
7 changed files with 9 additions and 11 deletions

View file

@ -443,13 +443,11 @@ export const ACHIEVEMENT_BADGES = {
bg: 'linear-gradient(0deg, rgb(144, 224, 255), rgb(255, 168, 252))',
frame: 'bronze',
},
/*
} as const satisfies Record<typeof ACHIEVEMENT_TYPES[number], {
img: string;
bg: string | null;
frame: 'bronze' | 'silver' | 'gold' | 'platinum';
}>;
*/ } as const;
export const claimedAchievements: typeof ACHIEVEMENT_TYPES[number][] = ($i && $i.achievements) ? $i.achievements.map(x => x.name) : [];