Skip to content

Glossary: TypeScript Beyond the Basics

declare

Also written: declare function, declare const, declare module, declare global

A keyword that says "this exists when the program runs, and here is its type". It has no body or value, and TypeScript can't check that the promise is true.

Where the book teaches it

Related terms

Declaration filedeclare global