Dropbox V2 Javascript API的TypeScript类型定义 [英] TypeScript type definition for Dropbox V2 Javascript API
问题描述
在哪里可以找到Dropbox v2 api的Typescript定义文件,如何将它们加载到VS Code中?我尝试了几次,似乎无法弄清楚。大多数其他库都没有任何问题。
Where can I find the Typescript definition files for Dropbox v2 api and how do I load them into VS Code? I tried several times and cannot seem to figure it out. Most other libraries don't have any problems.
推荐答案
当您<$ c $时,Dropbox V2库中包含键入内容。 c> npm install 库。
您可以通过查看库的源代码(特别是其 package.json 。如果package.json包含名为 typings
的键,则表示TypeScript类型与源代码捆绑在一起,并且在您<$ c $时将与代码一起安装。 c> npm install 库。
You can tell by looking at the source code for the library, specifically at its package.json. If the package.json includes a key called typings
, that means the TypeScript types are bundled with the source code, and will be installed along with the code when you npm install
the library.
如果在VSCode中键入不适合您,则还有其他问题-您怎么样安装Dropbox库?
If the typings don't work for you in VSCode, there is some other issue - how are you installing the Dropbox library?
这篇关于Dropbox V2 Javascript API的TypeScript类型定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!