TypeScript Global переменная
declare global {
interface Window {
myGlobalFunction: myGlobalFunction
}
}
0xCHI
declare global {
interface Window {
myGlobalFunction: myGlobalFunction
}
}
npm i -D @types/node@13.7