ZabiZ
Denoβ€’4y agoβ€’
8 replies
Zabi

module augmentation

Suppose
module.ts
is some external module that I have no control of.
In my file
test.ts
I want to change the type
UserEnv
of the external module.

How can I do this or does Deno just not support this and you basically need to use node to do this?


Note: This is a simple example where I could technically use generics, but you cannot do that with bigger stuff.
image.png
Was this page helpful?