Skip to content
Merged

m2d #1473

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export default defineConfig({
link: '/guide/performance'
},
{
text: `Migration from v${viteMajorVersion - 1}`,
text: `v${viteMajorVersion - 1} 迁移`,
link: '/guide/migration'
},
{
Expand Down Expand Up @@ -456,7 +456,7 @@ export default defineConfig({
// languages used for twoslash and jsdocs in twoslash
languages: ['ts', 'js', 'json'],
codeTransformers: [
transformerTwoslash(),
transformerTwoslash() as any,

Copilot AI Dec 6, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using as any type assertion bypasses TypeScript's type checking system, which can hide type errors and make the code harder to maintain. Consider using a more specific type assertion or fixing the underlying type incompatibility. If this is a known issue with the transformerTwoslash return type, consider using as unknown as CodeTransformer or the appropriate type from the library.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot open a new pull request to apply changes based on this feedback

// add `style:*` support
{
root(hast) {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"@shikijs/vitepress-twoslash": "^3.19.0",
"@type-challenges/utils": "^0.1.1",
"@types/express": "^5.0.6",
"@types/node": "^20.19.25",
"chalk": "^4.1.2",
"@types/node": "^24.10.1",
"chalk": "^5.6.2",
"feed": "^5.1.0",
"gray-matter": "^4.0.3",
"gsap": "^3.13.0",
Expand All @@ -22,7 +22,7 @@
"vitepress": "^2.0.0-alpha.15",
"vitepress-plugin-group-icons": "^1.6.5",
"vue": "^3.5.25",
"vue-tsc": "^3.1.5",
"vue-tsc": "^3.1.6",
"yorkie": "^2.0.0"
},
"packageManager": "pnpm@9.6.0",
Expand Down
Loading