/** * Creates a new instance of the given class using the specified arguments. * @param {Function} aClass - The class to instantiate. * @param {...*} args - The arguments to pass to the constructor of the class. * @returns {*} - A new instance of the class. * @example * // Define a class * class Person { * constructor(name, age) { * this.name = name; * this.age = age; * } * } * // Create a new instance of the Person class * const john = createObject(Person, 'John', 30); * console.log(john); // Output: Person { name: 'John', age: 30 } */ export function createObject(aClass: Function, ...args: any[]): any; export default createObject;