mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
chore: tweak
This commit is contained in:
parent
deefadca1e
commit
f64d51a0cd
@ -1,12 +1,20 @@
|
||||
import type {
|
||||
BuiltinTheme,
|
||||
BundledLanguage,
|
||||
Highlighter,
|
||||
LanguageInput,
|
||||
ShikiTransformer,
|
||||
SpecialLanguage,
|
||||
StringLiteralUnion,
|
||||
ThemeRegistration,
|
||||
} from 'shiki'
|
||||
import type { LocaleConfig } from 'vuepress/shared'
|
||||
|
||||
export type ShikiLang =
|
||||
| LanguageInput
|
||||
| StringLiteralUnion<BundledLanguage>
|
||||
| SpecialLanguage
|
||||
|
||||
export type ThemeOptions =
|
||||
| ThemeRegistration
|
||||
| BuiltinTheme
|
||||
@ -38,7 +46,7 @@ export interface HighlighterOptions {
|
||||
* Languages for syntax highlighting.
|
||||
* @see https://shiki.style/languages
|
||||
*/
|
||||
languages?: LanguageInput[]
|
||||
languages?: ShikiLang[]
|
||||
/**
|
||||
* Custom language aliases.
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user