My final goal is to integrate steelseries.js (https://github.com/HanSolo/SteelSeries-Canvas) in a Grafana plugin written in react. A long way to go ...
Currently, I am trying to import the steelseries
var in a ts class.
To sum up, I have a JS file (more than 10 000 lines) that has the following structure :
var helloWorld = (function() {
var helloDisplay = function () {
console.log("Hello World");
}
return {msgDisplay : helloDisplay}
}) ();
And I want to import it in a TS class like that :
// how to import my JS script in myJs ?
class MyClass {
...
tsHello (): void {
myJs.msgDisplay()
}
}
What is the simplest and/or the most efficient way to do that (JS File is very long)? (My class is in a TS file. I tried many things, I added .d.ts file but without success).