How to Create Global Variables in TypeScript with Node.js

added by JavaScript Kicks
12/15/2021 2:56:43 PM

1042 Views

At this point, you may know that Node.js version 16 has removed NodeJS.Global in favor of globalThis and because of that creating global variables can be kind of tricky nowadays (check this link for more info). Well, it was pretty easy, we just had to extends from NodeJS.Global.


0 comments