Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vue] 怎么配置使vue2.0+支持TypeScript写法? #440

Open
haizhilin2013 opened this issue Jun 22, 2019 · 2 comments
Open

[vue] 怎么配置使vue2.0+支持TypeScript写法? #440

haizhilin2013 opened this issue Jun 22, 2019 · 2 comments
Labels
vue vue

Comments

@haizhilin2013
Copy link
Collaborator

[vue] 怎么配置使vue2.0+支持TypeScript写法?

@haizhilin2013 haizhilin2013 added the vue vue label Jun 22, 2019
@citrus327
Copy link

使用
vuejs/vue-class-component

@Kntt
Copy link

Kntt commented Jul 4, 2019

  • 配置ts-loader,tsconfig
  • 增加类型扩展,让ts识别vue文件
  • vue文件中script里面换成ts写法, 需要增加几个ts扩展的package, 比如vue-property-decorator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vue vue
Projects
None yet
Development

No branches or pull requests

3 participants