I simply want to create a function that takes a class as argument:
const mixin = (traits: Object) =>
(baseClass: class) => { // What type to put here?
Object.assign(baseClass.prototype, traits)
return baseClass
}
But I don't know what type I have to put to specify I'm working with a Constructor Function.