.D.TS File Extension

TypeScript Declaration File

Developer Microsoft
Popularity
2.0  |  2 Votes
 

What is a D.TS file?

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.

More Information

Screenshot of a .d.ts file in Microsoft Visual Studio Code
D.TS file open in Microsoft Visual Studio Code

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.

How to open a D.TS file

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.

Open over 400 file formats with File Viewer Plus.Free Download

Programs that open or reference D.TS files

Verified by FileInfo.com

The FileInfo.com team has independently researched the TypeScript Declaration file format and Mac, Windows, and Linux apps listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have verified.

If you would like to suggest any additions or updates to this page, please let us know.