fix: return support node18 (#317)

This commit is contained in:
Marcos Susaña 2024-12-29 21:21:24 -04:00 committed by GitHub
parent a236b832ea
commit ac2df8133b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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');
function MixedClass(...constructorArgs: any[]) {
for (const i of args) {
const descriptors = getDescriptors(i).toReversed();
const descriptors = getDescriptors(i).reverse();
for (const j of descriptors) {
// @ts-expect-error
Object.assign(this, new j.constructor.value(...constructorArgs));