I am looking to develop a function that accepts a class as a parameter:
const mixin = (traits: Object) =>
(baseClass: class) => { // Which type should be specified here?
Object.assign(baseClass.prototype, traits)
return baseClass
}
However, I am unsure about the specific type I need to use in order to indicate that I am dealing with a Constructor Function.