Global-modifying Modules
A global-modifying module alters existing values in the global scope when they are imported.
For example, there might exist a library which adds new members to String.prototype when imported.
This pattern is somewhat dangerous due to the possibility of runtime conflicts,
but we can still write a declaration file for it.
Identifying global-modifying modules
Global-modifying modules are generally easy to identify from their documentation.
In general, they’re similar to global plugins, but need a require call to activate their effects.
You might see documentation like this:
js
Here is an example
ts