recently I"ve been learning that ts, doesn"t quite understand this part of global variables. For example, such an expression in the original node
global.sql = require("./tools/mysql").sql;
this allows you to define a global variable.
and how should this sql global variable be defined in ts?