.D.TS 文件扩展名

TypeScript Declaration File

开发者 Microsoft
受欢迎程度
3.4  |  5 
 

什么是 D.TS 文件?

A D.TS file is a declaration file used by a TypeScript program. It contains a description of objects and functions contained in an associated JavaScript library. It allows a TypeScript program to use a JavaScript API.

更多信息

在 Microsoft Visual Studio Code 中打开的 .d.ts 文件截图
在 Microsoft Visual Studio Code 中打开的 D.TS 文件

TypeScript is a JavaScript variant developed and maintained by Microsoft. It uses static type checking to check programs for errors before running them. When a TypeScript program is compiled, it is compiled to JavaScript, making it easier for web browsers to run.

Developers creating TypeScript programs may want to access APIs written in plain JavaScript. To do so, the developer must create a D.TS file that declares that API's objects and functions. They can then add the API's .JS file as a source for their TypeScript program, alongside the corresponding D.TS file.

如何打开 D.TS 文件

You can open and edit a D.TS file with Microsoft Visual Studio Code (multiplatform), GitHub Atom (multiplatform), or any other text or source code editor.

使用File Viewer Plus打开 400 多种文件格式。免费下载

可打开或引用 D.TS 文件的程序

分类: 开发者
更新时间: 2022-11-09

验证者 FileInfo.com

FileInfo.com 团队 独立研究了本页面列出的 TypeScript Declaration 文件格式和 Mac, Windows, and Linux 应用。 我们的目标是达到 100% 的准确率,并且仅发布我们已验证过的文件类型信息。

如果您想为此页面提出新增或更新建议,请告诉我们