Skip to content

Commit

Permalink
docs: update client types path
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Dec 31, 2023
1 parent 1e7124e commit 624f983
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/reference/client-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ Client API is provided by [@vuepress/client](https://www.npmjs.com/package/@vuep

There are some constants that available in the client side code.

To shim the types of these constants in client side code, add `@vuepress/client/types` to your `tsconfig.json`:
To shim the types of these constants in client side code, add `vuepress/client-types` to your `tsconfig.json`:

```json
{
"compilerOptions": {
"types": ["@vuepress/client/types"]
"types": ["vuepress/client-types"]
}
}
```
Expand Down
4 changes: 2 additions & 2 deletions docs/zh/reference/client-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@

在客户端代码中有一些常量可以使用。

如果想要把这些常量的类型定义补充到你的代码环境中,请将 `@vuepress/client/types` 添加到你的 `tsconfig.json` 里:
如果想要把这些常量的类型定义补充到你的代码环境中,请将 `vuepress/client-types` 添加到你的 `tsconfig.json` 里:

```json
{
"compilerOptions": {
"types": ["@vuepress/client/types"]
"types": ["vuepress/client-types"]
}
}
```
Expand Down

0 comments on commit 624f983

Please sign in to comment.