I have a string that contains multiple JavaScript methods. I want to be able to convert this JavaScript into callable functions within my TypeScript code.
Ex:
script = 'function func1 () { console.log("func1"); } function func2 () { console.log("func2"); }';
// ...
// Magic
// ...
func1();