Answers for "multiple extends in typescript"

0

extends multiple class typescript

function applyMixins(derivedCtor: any, baseCtors: any[]) {
    baseCtors.forEach(baseCtor => {
        Object.getOwnPropertyNames(baseCtor.prototype).forEach(name => {
             if (name !== 'constructor') {
                derivedCtor.prototype[name] = baseCtor.prototype[name];
            }
        });
    }); 
}
Posted by: Guest on October-31-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language