Glossary: TypeScript Beyond the Basics
Module augmentation
Adding to a package's types with `declare module "name"` inside a file that is a module. Combined with declaration merging, it let Alex add `phone` to `Shipment`.
Glossary: TypeScript Beyond the Basics
Adding to a package's types with `declare module "name"` inside a file that is a module. Combined with declaration merging, it let Alex add `phone` to `Shipment`.