mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 04:56:07 +00:00
fix: Protoype (#224)
This commit is contained in:
parent
cd445b19b2
commit
ca51b1f535
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user