global augmentation

Adding types to global objects such as Window or NodeJS.ProcessEnv with a declare global { } block inside a module.

In more detail

The course uses it to type environment variables like DATABASE_URL. Keep such additions few, because everything global is visible to every file.

Related terms

Taught in

References