fix: Protoype (#224)

This commit is contained in:
Aaron Sandoval 2024-07-25 12:03:27 -07:00 committed by GitHub
parent cd445b19b2
commit ca51b1f535
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,6 +31,7 @@ export function Mixin<T, C extends TypeClass[]>(...args: C): C[number] & T {
for (const descriptorK in j) {
if (descriptorK === 'constructor') continue;
if (descriptorK in MixedClass.prototype) continue;
const descriptor = j[descriptorK];
if (descriptor.value) {
MixedClass.prototype[descriptorK] = descriptor.value;