diff --git a/docs/features/pass-logs.md b/docs/features/pass-logs.md index 2d63f80..6021f66 100644 --- a/docs/features/pass-logs.md +++ b/docs/features/pass-logs.md @@ -52,7 +52,7 @@ On the server side, replace `console` with `client`. Here's an example in `Nuxt`: -```ts{2,9-11} [server/api/test.ts] twoslash +```ts{1,8-10} [server/api/test.ts] twoslash import { client } from 'unplugin-turbo-console/helper' import { defineEventHandler } from 'h3' diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 92463df..654f3e8 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -43,7 +43,7 @@ This experimental syntax requires enabling the parser plugin: "importAttributes" To resolve this, add the missing Babel parser plugin to `babelParserPlugins`: -```js{2,7} twoslash +```js{2,7} twoslash [vite.config.ts] import { defineConfig } from 'vite' import TurboConsole from 'unplugin-turbo-console/vite' diff --git a/docs/zh-CN/features/pass-logs.md b/docs/zh-CN/features/pass-logs.md index e94d705..5fb8b34 100644 --- a/docs/zh-CN/features/pass-logs.md +++ b/docs/zh-CN/features/pass-logs.md @@ -48,8 +48,7 @@ mount(() => , document.getElementById('app')!) 以下是在`Nuxt`中的示例: -```ts{2,9-11} twoslash -// server/api/test.ts +```ts{1,8-10} [server/api/test.ts] twoslash import { client } from 'unplugin-turbo-console/helper' import { defineEventHandler } from 'h3' diff --git a/docs/zh-CN/guide/configurations.md b/docs/zh-CN/guide/configurations.md index d189475..9b2ba48 100644 --- a/docs/zh-CN/guide/configurations.md +++ b/docs/zh-CN/guide/configurations.md @@ -18,9 +18,7 @@ 有两种方式来配置 TypeScript 类型: -1. 在 `tsconfig.json` 文件中: - -```json +```json [tsconfig.json] { "compilerOptions": { "types": [ @@ -30,8 +28,8 @@ } ``` -2. 在 `.d.ts` 文件中: +或者 -```ts +```ts [*.d.ts] /// ``` diff --git a/docs/zh-CN/troubleshooting.md b/docs/zh-CN/troubleshooting.md index 541d354..ef5c8ba 100644 --- a/docs/zh-CN/troubleshooting.md +++ b/docs/zh-CN/troubleshooting.md @@ -43,7 +43,7 @@ This experimental syntax requires enabling the parser plugin: "importAttributes" 解决方法是将缺失的 babel parser 插件添加到`babelParserPlugins`中: -```js{2,7} twoslash +```js{2,7} twoslash [vite.config.ts] import { defineConfig } from 'vite' import TurboConsole from 'unplugin-turbo-console/vite'