1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-06-10 15:24:04 +02:00

refactor: restore SatisfiesExpression

This commit is contained in:
Acid Chicken (硫酸鶏)
2023-04-01 14:04:48 +09:00
parent 5667f0f839
commit f246699f38
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) : [];