Skip to content

Commit cb82edb

Browse files
committed
docs: update readme
1 parent ff8b1f6 commit cb82edb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

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

5656
# TypeScript
5757

58-
We provide an Example [Repository](https://github.com/liximomo/vue-composition-api-tsx-example) with TS and TSX support to help you start.
59-
6058
**This plugin requires TypeScript version >3.5.1. If you are using vetur, make sure to set `vetur.useWorkspaceDependencies` to `true`.**
6159

6260
To let TypeScript properly infer types inside Vue component options, you need to define components with `createComponent`:
@@ -76,6 +74,8 @@ const Component = {
7674

7775
## TSX
7876

77+
:rocket: An Example [Repository](https://github.com/liximomo/vue-composition-api-tsx-example) with TS and TSX support is provided to help you start.
78+
7979
To support TSX, create a declaration file with following content in your project.
8080

8181
```ts

README.zh-CN.md

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

5656
# TypeScript
5757

58-
我们提供了一个配置好 TC/TSX 支持的[示例仓库](https://github.com/liximomo/vue-composition-api-tsx-example)来帮助你快速开始.
59-
6058
**请使用最新版的 TypeScript,如果你使用了 `vetur`,请将 `vetur.useWorkspaceDependencies` 设为 `true`**
6159

6260
为了让 TypeScript 正确的推导类型,我们必须使用 `createComponent` 来定义组件:
@@ -76,6 +74,8 @@ const Component = {
7674

7775
## TSX
7876

77+
:rocket: 这里有一个配置好 TC/TSX 支持的[示例仓库](https://github.com/liximomo/vue-composition-api-tsx-example)来帮助你快速开始.
78+
7979
要支持 TSX,请创建一个类型定义文件并提供正确的 JSX 定义。内容如下:
8080

8181
```ts

0 commit comments

Comments
 (0)