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.7 Replies
module.ts
test.ts
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yeah, seems like Deno does not support it.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
If I turn off typechecking than yeah.
(no
--check
flag)Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
module augmentation stuff not working 😐