perf: format code with better style (#5283)

This commit is contained in:
Vben
2025-01-01 11:39:49 +08:00
committed by GitHub
parent 4d81b9d18d
commit 081d2aed23
288 changed files with 1805 additions and 2164 deletions

View File

@@ -46,7 +46,7 @@ async function loadSvgIcons() {
await Promise.all(
Object.entries(svgEagers).map((svg) => {
const [key, body] = svg as [string, { default: string } | string];
const [key, body] = svg as [string, string | { default: string }];
// ./icons/xxxx.svg => xxxxxx
const start = key.lastIndexOf('/') + 1;