vscode`typeAciquition`浏览器导入
我想拥有.d.ts
lit的键入,该键入将从esm.sh
cdn中提供。我想使用VSCODE的内置类型采集系统来获取JavaScript文件的IntelliSense(将直接提供给用户)。我尝试使用jsconfig.json
文件,但尚未弄清楚如何使其工作。
这是我的配置:
{
"typeAcquisition": {"include": ["lit", "lit-element", "lit-html"]}
}
我认为这些库中的所有JavaScript文件都将提供全局类型的提示。有什么方法可以获取类型提示而不涉及node.js?
I want to have .d.ts
typings for Lit which will be served from the esm.sh
CDN. I want to use VSCode's built-in type acquisition system to get Intellisense for the Javascript files (which will be served directly to the user). I have tried to use a jsconfig.json
file but have not figured out how to get it to work.
This is my configuration:
{
"typeAcquisition": {"include": ["lit", "lit-element", "lit-html"]}
}
I thought adding these would provide global type hints in all my Javascript files for these libraries. Is there any way to get the type hints without involving Node.js?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论