From 6a82137f5bfd1d474b2ba83874ce01c94b81c34b Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Thu, 23 Nov 2023 11:39:01 +0100 Subject: [PATCH] chore: types --- scripts/readme.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/readme.ts b/scripts/readme.ts index ab27efc5..665931e3 100644 --- a/scripts/readme.ts +++ b/scripts/readme.ts @@ -10,7 +10,7 @@ function replaceMarker(code: string, marker: string, content: string) { async function run() { let mdLangs = await fs.readFile('docs/languages.md', 'utf8') - const langs = await fs.readJSON('packages/shikiji/src/assets/langs.json') + const langs = await fs.readJSON('packages/shikiji/src/assets/langs.json') as { id: string, name?: string, aliases?: string[] }[] mdLangs = replaceMarker( mdLangs, 'all-languages', @@ -24,7 +24,7 @@ async function run() { // ---- Themes let mdThemes = await fs.readFile('docs/themes.md', 'utf8') - const themes = await fs.readJSON('packages/shikiji/src/assets/themes.json') + const themes = await fs.readJSON('packages/shikiji/src/assets/themes.json') as { id: string, name?: string }[] mdThemes = replaceMarker( mdThemes, 'all-themes',