.d.ts — TypeScript Declaration File
A TypeScript file containing only type declarations (no runtime code), typically describing the shape of a JavaScript library for type-checking.
Source code is plain text and doesn't execute on its own — it has to be compiled or run by a specific tool, which is where any real risk would occur.
Check another filename
File extension lookup
Frequently asked questions
What is a .d.ts file?
A TypeScript file containing only type declarations (no runtime code), typically describing the shape of a JavaScript library for type-checking.
Can I edit a .d.ts file?
Yes — .d.ts files are commonly editable with software such as TypeScript compiler.
Does having a .d.ts extension mean the file is safe?
No single extension can guarantee that. Source code is plain text and doesn't execute on its own — it has to be compiled or run by a specific tool, which is where any real risk would occur. Always consider where the file came from, not just its name.