Skip to content

Implement runtime typeof check #221

Closed
@kungfooman

Description

@kungfooman

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});

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions