Skip to content

Glossary: TypeScript Beyond the Basics

Declaration file

Also written: .d.ts, declaration files, d.ts

A `.d.ts` file holds types but no code. It describes JavaScript, such as a plain package or a script the browser loads, to TypeScript.

Where the book teaches it

Related terms

declaredeclarationDefinitelyTyped