DenoDDeno
Powered by
ZabiZ
Denoβ€’4y agoβ€’
8 replies
Zabi

module augmentation

Suppose
module.ts
module.ts
is some external module that I have no control of.
In my file
test.ts
test.ts
I want to change the type
UserEnv
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
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Module loading
FridiousFFridious / help
3y ago
Include d.ts only module with global module
hiyayakk0Hhiyayakk0 / help
2y ago
local npm module
DonTheDudeDDonTheDude / help
2y ago
Cannot find module
OlynoOOlyno / help
3y ago