Skip to content

Glossary: TypeScript Beyond the Basics

declaration

Also written: "declaration": true

A tsconfig option that makes `tsc` write a `.d.ts` file next to each `.js` file it outputs. You need it when other packages will use your compiled code.

Where the book teaches it

Related terms

Declaration filecomposite