Created
July 19, 2026 06:05
-
-
Save pfftdammitchris/ce694aa70489e8c6d09484cd653d14c2 to your computer and use it in GitHub Desktop.
TypeScript Namespace vs Module in 2026: When Declaration Files Still Need Namespaces - snippet-5.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // winston-augmentation.d.ts | |
| import "winston"; | |
| declare module "winston" { | |
| namespace winston { | |
| interface LoggerOptions { | |
| datadogApiKey?: string; | |
| datadogService?: string; | |
| enableCloudWatch?: boolean; | |
| cloudWatchGroup?: string; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment