TypeScript: Enhance Variable Types with Declaration Merging

This story is about an often applied technique by libraries that offer full TypeScript support. Although as a consumer of these things…