import {random, range} from "lodash" declare global { interface Window { formStart: any; } } export {} function formStart() { console.log(window.pathConfig.root); const a = 10; const b:number[] = []; for(const v of range(10)){ b.push(random()*v); } console.log(a + 10); console.log(b); } window.formStart = formStart;