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

add typescript support #146

Closed
asukaminato0721 opened this issue Jul 25, 2022 · 3 comments
Closed

add typescript support #146

asukaminato0721 opened this issue Jul 25, 2022 · 3 comments

Comments

@asukaminato0721
Copy link
Contributor

我尝试了一下

  1. 找到了这个,但是没成功 https://v2.vuejs.org/v2/guide/typescript.html
  2. 尝试用这个 https://medium.com/js-dojo/adding-typescript-to-your-existing-vuejs-2-6-app-aaa896c2d40a ,但是依赖装不上。可能重新创建 ts 项目再移进来会好点。
  3. //@ts-check,结果也出现了很多类型错误,感觉加类型难度有点大。
  4. 至于为什么不直接 vue3, breaking change 工作量太大了
@baiy
Copy link
Owner

baiy commented Jul 26, 2022

没有使用 typescript 原因

  1. 我本身是做后端的 js 实在水平有限
  2. 项目开发之初vue3还没有发布
  3. 中途切换typescript 没有什么直接效果 而且工程量太多

等vue3和生态在飞一会, 下一个大版本考虑切换到vue3(或者是react)和typescript

@asukaminato0721
Copy link
Contributor Author

现在有个 svelte 的也很成熟了。 https://svelte.dev/
优点:写起来简单。
缺点:生态起不来,相比你说的这两个,人数很感人。

只是一个小建议,可以忽略。

@baiy
Copy link
Owner

baiy commented Dec 30, 2022

新版已支持

@baiy baiy closed this as completed Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants