Parcourir la source

ref: json type imports

Sv443 il y a 3 mois
Parent
commit
1e0a28c4d9
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4 2
      src/types.ts

+ 4 - 2
src/types.ts

@@ -9,8 +9,10 @@ import type { BytmDialog, ExImDialog, createCircularBtn, createHotkeyInput, crea
 import type { fetchLyricsUrlTop, sanitizeArtists, sanitizeSong } from "./features/lyrics.js";
 import type { getLyricsCacheEntry } from "./features/lyricsCache.js";
 import type { showPrompt } from "./dialogs/prompt.js";
-import resources from "../assets/resources.json" with { type: "json" }; // eslint-disable-line @typescript-eslint/no-unused-vars
-import locales from "../assets/locales.json" with { type: "json" }; // eslint-disable-line @typescript-eslint/no-unused-vars
+import resources from "../assets/resources.json" with { type: "json" };
+import locales from "../assets/locales.json" with { type: "json" };
+
+void ["type imports only", resources, locales];
 
 //#region other