perf: format code with better style (#5283)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user