style: note about `TSSatisfiesExpression`

This commit is contained in:
Acid Chicken (硫酸鶏) 2023-04-03 20:55:24 +09:00
parent 14591aa8f2
commit b91d831e82
No known key found for this signature in database
GPG Key ID: 3E87B98A3F6BAB99
5 changed files with 15 additions and 2 deletions

View File

@ -77,6 +77,9 @@ async function renderChart() {
barPercentage: 0.7, barPercentage: 0.7,
categoryPercentage: 0.7, categoryPercentage: 0.7,
fill: true, fill: true,
/* @see <https://github.com/misskey-dev/misskey/pull/10365#discussion_r1155511107>
} satisfies ChartData, extra);
*/
}, extra); }, extra);
} }

View File

@ -113,6 +113,9 @@ async function renderChart() {
const a = c.chart.chartArea ?? {}; const a = c.chart.chartArea ?? {};
return (a.bottom - a.top) / 7 - marginEachCell; return (a.bottom - a.top) / 7 - marginEachCell;
}, },
/* @see <https://github.com/misskey-dev/misskey/pull/10365#discussion_r1155511107>
}] satisfies ChartData[],
*/
}], }],
}, },
options: { options: {

View File

@ -76,6 +76,9 @@ async function renderChart() {
borderRadius: 4, borderRadius: 4,
barPercentage: 0.9, barPercentage: 0.9,
fill: true, fill: true,
/* @see <https://github.com/misskey-dev/misskey/pull/10365#discussion_r1155511107>
} satisfies ChartData, extra);
*/
}, extra); }, extra);
} }

View File

@ -77,6 +77,9 @@ async function renderChart() {
barPercentage: 0.7, barPercentage: 0.7,
categoryPercentage: 0.7, categoryPercentage: 0.7,
fill: true, fill: true,
/* @see <https://github.com/misskey-dev/misskey/pull/10365#discussion_r1155511107>
} satisfies ChartData, extra);
*/
}, extra); }, extra);
} }

View File

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