type declaration file

A TypeScript file ending in .d.ts that describes the types of JavaScript code without containing the code itself.

In more detail

Libraries compile to JavaScript and ship .d.ts files so consumers still get type checking and autocomplete. The types export condition points at them.

Related terms

Taught in

References