mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-04 22:16:08 +00:00
fix: return support node18 (#317)
This commit is contained in:
parent
a236b832ea
commit
ac2df8133b
@ -47,7 +47,7 @@ export function Mixin<T, C extends TypeClass[]>(...args: C): C[number] & T {
|
|||||||
const ignoreOverwriteToString = Object.keys(Object.getOwnPropertyDescriptors(args[0].prototype)).includes('toString');
|
const ignoreOverwriteToString = Object.keys(Object.getOwnPropertyDescriptors(args[0].prototype)).includes('toString');
|
||||||
function MixedClass(...constructorArgs: any[]) {
|
function MixedClass(...constructorArgs: any[]) {
|
||||||
for (const i of args) {
|
for (const i of args) {
|
||||||
const descriptors = getDescriptors(i).toReversed();
|
const descriptors = getDescriptors(i).reverse();
|
||||||
for (const j of descriptors) {
|
for (const j of descriptors) {
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
Object.assign(this, new j.constructor.value(...constructorArgs));
|
Object.assign(this, new j.constructor.value(...constructorArgs));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user