mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-24 18:46:43 -06:00
style: note about TSSatisfiesExpression
This commit is contained in:
parent
14591aa8f2
commit
b91d831e82
5 changed files with 15 additions and 2 deletions
|
@ -77,6 +77,9 @@ async function renderChart() {
|
|||
barPercentage: 0.7,
|
||||
categoryPercentage: 0.7,
|
||||
fill: true,
|
||||
/* @see <https://github.com/misskey-dev/misskey/pull/10365#discussion_r1155511107>
|
||||
} satisfies ChartData, extra);
|
||||
*/
|
||||
}, extra);
|
||||
}
|
||||
|
||||
|
|
|
@ -113,6 +113,9 @@ async function renderChart() {
|
|||
const a = c.chart.chartArea ?? {};
|
||||
return (a.bottom - a.top) / 7 - marginEachCell;
|
||||
},
|
||||
/* @see <https://github.com/misskey-dev/misskey/pull/10365#discussion_r1155511107>
|
||||
}] satisfies ChartData[],
|
||||
*/
|
||||
}],
|
||||
},
|
||||
options: {
|
||||
|
|
|
@ -76,6 +76,9 @@ async function renderChart() {
|
|||
borderRadius: 4,
|
||||
barPercentage: 0.9,
|
||||
fill: true,
|
||||
/* @see <https://github.com/misskey-dev/misskey/pull/10365#discussion_r1155511107>
|
||||
} satisfies ChartData, extra);
|
||||
*/
|
||||
}, extra);
|
||||
}
|
||||
|
||||
|
|
|
@ -77,6 +77,9 @@ async function renderChart() {
|
|||
barPercentage: 0.7,
|
||||
categoryPercentage: 0.7,
|
||||
fill: true,
|
||||
/* @see <https://github.com/misskey-dev/misskey/pull/10365#discussion_r1155511107>
|
||||
} satisfies ChartData, extra);
|
||||
*/
|
||||
}, extra);
|
||||
}
|
||||
|
||||
|
|
|
@ -443,13 +443,14 @@ export const ACHIEVEMENT_BADGES = {
|
|||
bg: 'linear-gradient(0deg, rgb(144, 224, 255), rgb(255, 168, 252))',
|
||||
frame: 'bronze',
|
||||
},
|
||||
/*
|
||||
/* @see <https://github.com/misskey-dev/misskey/pull/10365#discussion_r1155511107>
|
||||
} as const satisfies Record<typeof ACHIEVEMENT_TYPES[number], {
|
||||
img: string;
|
||||
bg: string | null;
|
||||
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) : [];
|
||||
|
||||
|
|
Loading…
Reference in a new issue