Skip to content

Commit

Permalink
docs: 不会 TypeScript 怎么办
Browse files Browse the repository at this point in the history
  • Loading branch information
Burt committed Jan 5, 2025
1 parent 828195e commit 79b3c37
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/base/15-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,3 +267,9 @@ pnpm add @uni-helper/[email protected]
> 因为 `unibest``2.3.0(含)` 之前没有把 `pnpm-lock.yaml` 加入到版本管理,导致小版还是有细微差别。
>
> `2.4.0` 开始已经加入,不会再出现这个问题。
## 不会 TypeScript 怎么办

不管个人还是团队、产品或者项目,从长远考虑我们都建议你学习 TypeScript,因为它是未来的趋势,而且大部分框架、库、插件都是用 TypeScript 开发的,足以证明它是构建一款成熟稳健产品的基石。

但考虑到实际情况,会各种客观原因存在,如果必须要用传统 JavaScript 进行开发,你可以在 `tsconfig.json` 里将 `allowJs` 设置为 `true` 即可,框架原有的 TypeScript 代码不会受到影响,并且你也可以在项目中使用 JavaScript 编写代码。

0 comments on commit 79b3c37

Please sign in to comment.