Skip to content

Commit 425d0e2

Browse files
committed
docs: add typescript version requirement
1 parent ac3581b commit 425d0e2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ After installing the plugin you can use the [Composition API](https://vue-compos
5454

5555
# TypeScript
5656

57+
**Please upgrade to the latest TypeScript. If you are using vetur, make sure to set `vetur.useWorkspaceDependencies` to `ture`.**
58+
5759
To let TypeScript properly infer types inside Vue component options, you need to define components with `createComponent`:
5860

5961
```ts

README.zh-CN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ Vue.use(VueCompositionApi);
5454

5555
# TypeScript
5656

57+
**请使用最新版的 TypeScript,如果你使用了 `vetur`,请将 `vetur.useWorkspaceDependencies` 设为 `true`**
58+
5759
为了让 TypeScript 正确的推到类型,我们必须使用 `createComponent` 来定义组件:
5860

5961
```ts

0 commit comments

Comments
 (0)