@slidev/types 0.48.2 → 0.48.3
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 +6 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -121,6 +121,12 @@ interface SlidevConfig {
|
|
|
121
121
|
* @default shiki
|
|
122
122
|
*/
|
|
123
123
|
highlighter: 'prism' | 'shiki';
|
|
124
|
+
/**
|
|
125
|
+
* Enable Twoslash
|
|
126
|
+
*
|
|
127
|
+
* @default true
|
|
128
|
+
*/
|
|
129
|
+
twoslash: boolean | 'dev' | 'build';
|
|
124
130
|
/**
|
|
125
131
|
* Show line numbers in code blocks
|
|
126
132
|
*
|
|
@@ -489,7 +495,6 @@ type ResolvedClicksInfo = Required<ClicksInfo>;
|
|
|
489
495
|
type ClicksMap = Map<ClicksElement, ClicksInfo>;
|
|
490
496
|
interface ClicksContext {
|
|
491
497
|
current: number;
|
|
492
|
-
readonly disabled: boolean;
|
|
493
498
|
readonly relativeOffsets: ClicksRelativeEls;
|
|
494
499
|
readonly map: ClicksMap;
|
|
495
500
|
resolve: (at: string | number, size?: number) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/types",
|
|
3
|
-
"version": "0.48.
|
|
3
|
+
"version": "0.48.3",
|
|
4
4
|
"description": "Shared types declarations for Slidev",
|
|
5
5
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
29
29
|
"katex": "^0.16.9",
|
|
30
30
|
"mermaid": "^10.9.0",
|
|
31
|
-
"monaco-editor": "^0.
|
|
31
|
+
"monaco-editor": "^0.47.0",
|
|
32
32
|
"shiki": "^1.1.7",
|
|
33
33
|
"unocss": "^0.58.5",
|
|
34
34
|
"unplugin-icons": "^0.18.5",
|