.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
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.