This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Description
The following snippet from the handbook doesn't compile anymore:
function applyMixins(derivedCtor: any, baseCtors: any[]) {
baseCtors.forEach(baseCtor => {
Object.getOwnPropertyNames(baseCtor.prototype).forEach(name => {
Object.defineProperty(derivedCtor.prototype, name, Object.getOwnPropertyDescriptor(baseCtor.prototype, name));
});
});
}
2.7.2 Playground
2.4.1 Playground
Any suggestions on how to fix it?