Skip to content

Instantly share code, notes, and snippets.

@pfftdammitchris
Created July 19, 2026 06:05
Show Gist options
  • Select an option

  • Save pfftdammitchris/ce694aa70489e8c6d09484cd653d14c2 to your computer and use it in GitHub Desktop.

Select an option

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
// 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