@shikijs/core 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-tokens.d.mts +3 -3
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/chunk-tokens.d.mts
CHANGED
|
@@ -929,13 +929,13 @@ interface BundledHighlighterOptions<L extends string, T extends string> {
|
|
|
929
929
|
*
|
|
930
930
|
* @default []
|
|
931
931
|
*/
|
|
932
|
-
themes
|
|
932
|
+
themes: (ThemeInput | StringLiteralUnion<T>)[];
|
|
933
933
|
/**
|
|
934
934
|
* Language registation
|
|
935
935
|
*
|
|
936
|
-
* @default
|
|
936
|
+
* @default []
|
|
937
937
|
*/
|
|
938
|
-
langs
|
|
938
|
+
langs: (LanguageInput | StringLiteralUnion<L> | SpecialLanguage)[];
|
|
939
939
|
/**
|
|
940
940
|
* Alias of languages
|
|
941
941
|
* @example { 'my-lang': 'javascript' }
|
package/dist/index.d.mts
CHANGED
|
@@ -12,7 +12,7 @@ export { l as loadWasm } from './chunk-index.mjs';
|
|
|
12
12
|
*/
|
|
13
13
|
declare function getHighlighterCore(options?: HighlighterCoreOptions): Promise<HighlighterCore>;
|
|
14
14
|
|
|
15
|
-
type GetHighlighterFactory<L extends string, T extends string> = (options
|
|
15
|
+
type GetHighlighterFactory<L extends string, T extends string> = (options: BundledHighlighterOptions<L, T>) => Promise<HighlighterGeneric<L, T>>;
|
|
16
16
|
/**
|
|
17
17
|
* Create a `getHighlighter` function with bundled themes and languages.
|
|
18
18
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -5356,7 +5356,7 @@ async function getHighlighterCore(options = {}) {
|
|
|
5356
5356
|
* @param loadWasm
|
|
5357
5357
|
*/
|
|
5358
5358
|
function createdBundledHighlighter(bundledLanguages, bundledThemes, loadWasm) {
|
|
5359
|
-
async function getHighlighter(options
|
|
5359
|
+
async function getHighlighter(options) {
|
|
5360
5360
|
function resolveLang(lang) {
|
|
5361
5361
|
if (typeof lang === 'string') {
|
|
5362
5362
|
if (isSpecialLang(lang))
|