Skip to content

Commit

Permalink
docs: update demo code
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuyst authored and liximomo committed Aug 23, 2019
1 parent 72a951f commit 64aa6a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ After installing the plugin you can use the [Composition API](https://vue-compos
To let TypeScript properly infer types inside Vue component options, you need to define components with `createComponent`:

```ts
import Vue from 'vue';
import { createComponent } from 'vue-function-api';

const Component = createComponent({
// type inference enabled
Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Vue.use(VueFunctionApi);
为了让 TypeScript 正确的推到类型,我们必须使用 `createComponent` 来定义组件:

```ts
import Vue from 'vue';
import { createComponent } from 'vue-function-api';

const Component = createComponent({
// 启用类型推断
Expand Down

0 comments on commit 64aa6a8

Please sign in to comment.