Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyinws committed Sep 14, 2024
1 parent dd6dfc9 commit 452e4fe
Show file tree
Hide file tree
Showing 5 changed files with 546 additions and 359 deletions.
3 changes: 1 addition & 2 deletions docs/features/pass-logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ On the server side, replace `console` with `client`.

Here's an example in `Nuxt`:

```ts{2,9-11} twoslash
// server/api/test.ts
```ts{2,9-11} [server/api/test.ts] twoslash
import { client } from 'unplugin-turbo-console/helper'
import { defineEventHandler } from 'h3'
Expand Down
8 changes: 3 additions & 5 deletions docs/guide/configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@

There are two ways to configure the TypeScript type:

1. On `tsconfig.json` file:

```json
```json [tsconfig.json]
{
"compilerOptions": {
"types": [
Expand All @@ -30,8 +28,8 @@ There are two ways to configure the TypeScript type:
}
```

2. On `.d.ts` file:
Or

```ts
```ts [*.d.ts]
/// <reference types="unplugin-turbo-console/client" />
```
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"unplugin-turbo-console": "workspace:*",
"vite-plugin-inspect": "^0.8.4",
"vitepress": "^1.3.3",
"vitepress-plugin-group-icons": "1.1.0"
"vitepress-plugin-group-icons": "^1.2.0"
}
}
10 changes: 5 additions & 5 deletions examples/solid-start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
},
"dependencies": {
"@solidjs/meta": "^0.29.4",
"@solidjs/router": "^0.14.1",
"@solidjs/start": "^1.0.2",
"solid-js": "^1.8.17",
"vinxi": "^0.3.12",
"unplugin-turbo-console": "workspace:*"
"@solidjs/router": "^0.14.5",
"@solidjs/start": "^1.0.6",
"solid-js": "^1.8.22",
"unplugin-turbo-console": "workspace:*",
"vinxi": "^0.4.3"
},
"engines": {
"node": ">=18"
Expand Down
Loading

0 comments on commit 452e4fe

Please sign in to comment.