Skip to content

Commit b6708da

Browse files
committed
docs: update
1 parent 452e4fe commit b6708da

File tree

5 files changed

+7
-10
lines changed

5 files changed

+7
-10
lines changed

docs/features/pass-logs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ On the server side, replace `console` with `client`.
5252

5353
Here's an example in `Nuxt`:
5454

55-
```ts{2,9-11} [server/api/test.ts] twoslash
55+
```ts{1,8-10} [server/api/test.ts] twoslash
5656
import { client } from 'unplugin-turbo-console/helper'
5757
import { defineEventHandler } from 'h3'
5858

docs/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ This experimental syntax requires enabling the parser plugin: "importAttributes"
4343

4444
To resolve this, add the missing Babel parser plugin to `babelParserPlugins`:
4545

46-
```js{2,7} twoslash
46+
```js{2,7} twoslash [vite.config.ts]
4747
import { defineConfig } from 'vite'
4848
import TurboConsole from 'unplugin-turbo-console/vite'
4949

docs/zh-CN/features/pass-logs.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ mount(() => <StartClient />, document.getElementById('app')!)
4848

4949
以下是在`Nuxt`中的示例:
5050

51-
```ts{2,9-11} twoslash
52-
// server/api/test.ts
51+
```ts{1,8-10} [server/api/test.ts] twoslash
5352
import { client } from 'unplugin-turbo-console/helper'
5453
import { defineEventHandler } from 'h3'
5554

docs/zh-CN/guide/configurations.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818

1919
有两种方式来配置 TypeScript 类型:
2020

21-
1.`tsconfig.json` 文件中:
22-
23-
```json
21+
```json [tsconfig.json]
2422
{
2523
"compilerOptions": {
2624
"types": [
@@ -30,8 +28,8 @@
3028
}
3129
```
3230

33-
2.`.d.ts` 文件中:
31+
或者
3432

35-
```ts
33+
```ts [*.d.ts]
3634
/// <reference types="unplugin-turbo-console/client" />
3735
```

docs/zh-CN/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ This experimental syntax requires enabling the parser plugin: "importAttributes"
4343

4444
解决方法是将缺失的 babel parser 插件添加到`babelParserPlugins`中:
4545

46-
```js{2,7} twoslash
46+
```js{2,7} twoslash [vite.config.ts]
4747
import { defineConfig } from 'vite'
4848
import TurboConsole from 'unplugin-turbo-console/vite'
4949

0 commit comments

Comments
 (0)