move mdit types to dev deps

pull/4507/head
Divyansh Singh 8 months ago
parent abc9da6d3d
commit a0bd0e6bf6

@ -101,7 +101,6 @@
"@shikijs/core": "^2.1.0", "@shikijs/core": "^2.1.0",
"@shikijs/transformers": "^2.1.0", "@shikijs/transformers": "^2.1.0",
"@shikijs/types": "^2.1.0", "@shikijs/types": "^2.1.0",
"@types/markdown-it": "^14.1.2",
"@vitejs/plugin-vue": "^5.2.1", "@vitejs/plugin-vue": "^5.2.1",
"@vue/devtools-api": "^7.7.0", "@vue/devtools-api": "^7.7.0",
"@vue/shared": "^3.5.13", "@vue/shared": "^3.5.13",
@ -135,6 +134,7 @@
"@types/fs-extra": "^11.0.4", "@types/fs-extra": "^11.0.4",
"@types/lodash.template": "^4.5.3", "@types/lodash.template": "^4.5.3",
"@types/mark.js": "^8.11.12", "@types/mark.js": "^8.11.12",
"@types/markdown-it": "^14.1.2",
"@types/markdown-it-attrs": "^4.1.3", "@types/markdown-it-attrs": "^4.1.3",
"@types/markdown-it-container": "^2.0.10", "@types/markdown-it-container": "^2.0.10",
"@types/markdown-it-emoji": "^3.0.1", "@types/markdown-it-emoji": "^3.0.1",
@ -156,8 +156,8 @@
"lodash.template": "^4.5.0", "lodash.template": "^4.5.0",
"lru-cache": "^11.0.2", "lru-cache": "^11.0.2",
"markdown-it": "^14.1.0", "markdown-it": "^14.1.0",
"markdown-it-async": "^2.0.0",
"markdown-it-anchor": "^9.2.0", "markdown-it-anchor": "^9.2.0",
"markdown-it-async": "^2.0.0",
"markdown-it-attrs": "^4.3.1", "markdown-it-attrs": "^4.3.1",
"markdown-it-container": "^4.0.0", "markdown-it-container": "^4.0.0",
"markdown-it-emoji": "^3.0.0", "markdown-it-emoji": "^3.0.0",
@ -215,7 +215,8 @@
"ora>string-width": "^5" "ora>string-width": "^5"
}, },
"patchedDependencies": { "patchedDependencies": {
"@types/mdurl@2.0.0": "patches/@types__mdurl@2.0.0.patch" "@types/mdurl@2.0.0": "patches/@types__mdurl@2.0.0.patch",
"markdown-it-anchor@9.2.0": "patches/markdown-it-anchor@9.2.0.patch"
} }
} }
} }

@ -0,0 +1,17 @@
diff --git a/types/index.d.ts b/types/index.d.ts
index 40c25c0be1add8b0fc2c51489c25a423dbc49d2c..807bc1b0e434d660c6a298b1dee1c87935bfac86 100644
--- a/types/index.d.ts
+++ b/types/index.d.ts
@@ -1,10 +1,8 @@
import MarkdownIt from 'markdown-it';
-import { default as MarkdownItToken } from 'markdown-it/lib/token.mjs';
-import { default as MarkdownItState} from 'markdown-it/lib/rules_core/state_core.mjs';
+import { default as Token } from 'markdown-it/lib/token.mjs';
+import { default as State } from 'markdown-it/lib/rules_core/state_core.mjs';
declare namespace anchor {
- export type Token = MarkdownItToken
- export type State = MarkdownItState
export type RenderHref = (slug: string, state: State) => string;
export type RenderAttrs = (slug: string, state: State) => Record<string, string | number>;

@ -11,6 +11,9 @@ patchedDependencies:
'@types/mdurl@2.0.0': '@types/mdurl@2.0.0':
hash: ztuyknm7z4pyl4jot5hljjv5bm hash: ztuyknm7z4pyl4jot5hljjv5bm
path: patches/@types__mdurl@2.0.0.patch path: patches/@types__mdurl@2.0.0.patch
markdown-it-anchor@9.2.0:
hash: ivrlfano2jj27ilcyyknwlzzfu
path: patches/markdown-it-anchor@9.2.0.patch
importers: importers:
@ -34,9 +37,6 @@ importers:
'@shikijs/types': '@shikijs/types':
specifier: ^2.1.0 specifier: ^2.1.0
version: 2.1.0 version: 2.1.0
'@types/markdown-it':
specifier: ^14.1.2
version: 14.1.2
'@vitejs/plugin-vue': '@vitejs/plugin-vue':
specifier: ^5.2.1 specifier: ^5.2.1
version: 5.2.1(vite@6.0.11(@types/node@22.10.9)(jiti@1.21.7)(yaml@2.7.0))(vue@3.5.13(typescript@5.7.3)) version: 5.2.1(vite@6.0.11(@types/node@22.10.9)(jiti@1.21.7)(yaml@2.7.0))(vue@3.5.13(typescript@5.7.3))
@ -131,6 +131,9 @@ importers:
'@types/mark.js': '@types/mark.js':
specifier: ^8.11.12 specifier: ^8.11.12
version: 8.11.12 version: 8.11.12
'@types/markdown-it':
specifier: ^14.1.2
version: 14.1.2
'@types/markdown-it-attrs': '@types/markdown-it-attrs':
specifier: ^4.1.3 specifier: ^4.1.3
version: 4.1.3 version: 4.1.3
@ -196,7 +199,7 @@ importers:
version: 14.1.0 version: 14.1.0
markdown-it-anchor: markdown-it-anchor:
specifier: ^9.2.0 specifier: ^9.2.0
version: 9.2.0(@types/markdown-it@14.1.2)(markdown-it@14.1.0) version: 9.2.0(patch_hash=ivrlfano2jj27ilcyyknwlzzfu)(@types/markdown-it@14.1.2)(markdown-it@14.1.0)
markdown-it-async: markdown-it-async:
specifier: ^2.0.0 specifier: ^2.0.0
version: 2.0.0 version: 2.0.0
@ -4368,7 +4371,7 @@ snapshots:
mark.js@8.11.1: {} mark.js@8.11.1: {}
markdown-it-anchor@9.2.0(@types/markdown-it@14.1.2)(markdown-it@14.1.0): markdown-it-anchor@9.2.0(patch_hash=ivrlfano2jj27ilcyyknwlzzfu)(@types/markdown-it@14.1.2)(markdown-it@14.1.0):
dependencies: dependencies:
'@types/markdown-it': 14.1.2 '@types/markdown-it': 14.1.2
markdown-it: 14.1.0 markdown-it: 14.1.0

Loading…
Cancel
Save