- 现有的项目都是用js实现了,现在要转为ts,如果全部重新转的话,压力太大。决定使用一个折中的办法:原来的不变,新的全部使用Ts实现。后面,再将js慢慢转为ts
- 在使用过程中,发现ts是不能使用js的模块的,在typescript和vscode官方文档中,了解到,还需要增加jsconfig.js配置,就可以实现共存共用的效果。
- 这个开源工程,就是一个共存共用的例子
-
Notifications
You must be signed in to change notification settings - Fork 0
zdhsoft/ts-js-demo
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
js和ts共存共用的demo
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published