Skip to content

Glossary: TypeScript Beyond the Basics

export declare

The form `tsc` writes in a generated `.d.ts` file for each exported item, such as `export declare function formatCents(cents: number): string;`. It states that the item exists in the matching `.js` file and gives its type, with no function bodies or values.

Where the book teaches it

Related terms

declaredeclaration