Skip to content

Glossary: TypeScript Beyond the Basics

Shorthand ambient module

Also written: declare module "x";

A bare `declare module "x";` makes every import from that package `any`, which turns checking off. Describing the package with a full `declare module` block is better.

Where the book teaches it

Related terms

declareany