ts-global

A easy way to use global variables in Typescript.

Usage no npm install needed!

<script type="module">
  import tsGlobal from 'https://cdn.skypack.dev/ts-global';
</script>

README

ts-global

A easy way to use global variables in Typescript.

Usage


File 1:

let glo = require("ts-global");
glo.test = 1234;

File 2:

let glo = require("ts-global");
console.log( glo.test ); // 1234