Skip to content

Commit 64aa6a8

Browse files
zhuystliximomo
authored andcommitted
docs: update demo code
1 parent 72a951f commit 64aa6a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ After installing the plugin you can use the [Composition API](https://vue-compos
5757
To let TypeScript properly infer types inside Vue component options, you need to define components with `createComponent`:
5858

5959
```ts
60-
import Vue from 'vue';
60+
import { createComponent } from 'vue-function-api';
6161

6262
const Component = createComponent({
6363
// type inference enabled

README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Vue.use(VueFunctionApi);
5757
为了让 TypeScript 正确的推到类型,我们必须使用 `createComponent` 来定义组件:
5858

5959
```ts
60-
import Vue from 'vue';
60+
import { createComponent } from 'vue-function-api';
6161

6262
const Component = createComponent({
6363
// 启用类型推断

0 commit comments

Comments
 (0)