From 10fc96f72522c7789e8b5708fe9aef0819f8be93 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Sun, 16 Nov 2025 14:52:57 -0500 Subject: [PATCH] ShikiCodeBlocks: Fix Typing --- src/plugins/shikiCodeblocks.desktop/api/languages.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/shikiCodeblocks.desktop/api/languages.ts b/src/plugins/shikiCodeblocks.desktop/api/languages.ts index 22ed4f9b8..40cb54e73 100644 --- a/src/plugins/shikiCodeblocks.desktop/api/languages.ts +++ b/src/plugins/shikiCodeblocks.desktop/api/languages.ts @@ -37,17 +37,17 @@ export interface Language { } export interface LanguageJson { name: string; - id: string; + displayName: string; fileName: string; - devicon?: string; scopeName: string; + devicon?: string; aliases?: string[]; } export const languages: Record = {}; export const loadLanguages = async () => { - const langsJson = await fetch(JSON_URL).then(res => res.ok ? res.json() : []); + const langsJson: LanguageJson[] = await fetch(JSON_URL).then(res => res.ok ? res.json() : []); const loadedLanguages = Object.fromEntries( langsJson.map(lang => { const { name, displayName, ...rest } = lang;