Config module in Node.js is considered an anti-pattern when using TypeScript.
Global variables like process.env.NODE_ENV can lead to untyped and unparsed configurations, lacking type safety.
It is recommended to define default, dev, and prod configurations with type safety and environment awareness, rather than relying on global variables.
Instead of using the config module, it is suggested to create simple types along with a helper function for type-safe configuration in TypeScript projects.