@shikijs/types 2.3.2 → 2.4.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/index.d.mts +8 -0
- package/dist/index.d.ts +8 -0
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -808,6 +808,14 @@ interface HighlighterGeneric<BundledLangKeys extends string, BundledThemeKeys ex
|
|
|
808
808
|
* @deprecated
|
|
809
809
|
*/
|
|
810
810
|
getInternalContext: () => ShikiInternal;
|
|
811
|
+
/**
|
|
812
|
+
* Get bundled languages object
|
|
813
|
+
*/
|
|
814
|
+
getBundledLanguages: () => Record<BundledLangKeys, LanguageInput>;
|
|
815
|
+
/**
|
|
816
|
+
* Get bundled themes object
|
|
817
|
+
*/
|
|
818
|
+
getBundledThemes: () => Record<BundledThemeKeys, ThemeInput>;
|
|
811
819
|
}
|
|
812
820
|
/**
|
|
813
821
|
* The fine-grained core Shiki highlighter instance.
|
package/dist/index.d.ts
CHANGED
|
@@ -808,6 +808,14 @@ interface HighlighterGeneric<BundledLangKeys extends string, BundledThemeKeys ex
|
|
|
808
808
|
* @deprecated
|
|
809
809
|
*/
|
|
810
810
|
getInternalContext: () => ShikiInternal;
|
|
811
|
+
/**
|
|
812
|
+
* Get bundled languages object
|
|
813
|
+
*/
|
|
814
|
+
getBundledLanguages: () => Record<BundledLangKeys, LanguageInput>;
|
|
815
|
+
/**
|
|
816
|
+
* Get bundled themes object
|
|
817
|
+
*/
|
|
818
|
+
getBundledThemes: () => Record<BundledThemeKeys, ThemeInput>;
|
|
811
819
|
}
|
|
812
820
|
/**
|
|
813
821
|
* The fine-grained core Shiki highlighter instance.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shikijs/types",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.4.0",
|
|
5
5
|
"description": "Type definitions for Shiki",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@shikijs/vscode-textmate": "^10.0.
|
|
32
|
+
"@shikijs/vscode-textmate": "^10.0.2",
|
|
33
33
|
"@types/hast": "^3.0.4"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|