Skip to content

Commit e3ba321

Browse files
committed
fix: vixLang类型不匹配
1 parent d163456 commit e3ba321

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.vitepress/config.mts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import { defineConfig } from 'vitepress'
22
import { createHighlighter } from 'shiki'
3+
import type { LanguageRegistration } from 'shiki'
34
import vixGrammar from './theme/vix/extension/syntaxes/vix.json'
45

56
const vixLang = {
67
...vixGrammar,
78
id: 'vix',
89
name: 'vix'
9-
}
10+
} as LanguageRegistration
1011

1112
const commonLangs = ['bash', 'sh', 'javascript', 'typescript', 'json', 'markdown', 'html', 'css', 'yaml', 'toml', 'python', 'rust', 'go', 'java', 'cpp', 'c', 'sql', 'xml', 'dockerfile', 'ini', 'lua', 'powershell', 'shellscript']
1213

0 commit comments

Comments
 (0)