Closed
Description
Example:
import {TypePanel, options} from '@runtime-type-inspector/runtime';
class TestClass1 {
abc = 123;
constructor(greeting = "hi1") {
this.greeting = greeting;
}
}
/**
* @param {typeof TestClass1} someClass - Some class.
* @param {...any} args - The arguments.
* @returns {object} The object.
*/
function callNew(someClass, ...args) {
return new someClass(...args);
}
const testClass1 = callNew(TestClass1, "hoi1");
const typePanel = new TypePanel();
Object.assign(window, {typePanel});