首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
V2EX
›
TypeScript
vscode 纯 js 项目有类型推断和成员变量提示,但是如果 ts 混用的话, js 导入就全变成 any 了,请问有办法解决吗
treblex
·
55 天前
· 302 次点击
这是一个创建于 55 天前的主题,其中的信息可能已经有所发展或是发生改变。
2 条回复
1
RedNax
55 天前
1
// ts-check
以及 JSDoc
主要看文档
https://www.typescriptlang.org/docs/handbook/intro-to-js-ts.html
和
https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html
但说实话真不如直接转成 TS
2
treblex
OP
55 天前
@
RedNax
😂确实纯 ts 和纯 js 体验都挺好,有时候想偷个懒
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
我们的愿景
·
实用小工具
·
2542 人在线
最高记录 6543
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 43ms ·
UTC 13:16
·
PVG 21:16
·
LAX 06:16
·
JFK 09:16
Developed with
CodeLauncher
♥ Do have faith in what you're doing.