0.1.13 #18

Merged
Thilawyn merged 359 commits from next into master 2025-06-18 00:12:19 +02:00
Showing only changes of commit ce3989ab77 - Show all commits

View File

@@ -2,7 +2,7 @@ import * as ReffuseHelpers from "./ReffuseHelpers.js"
import type { Merge, StaticType } from "./types.js"
export const make = <Ext extends object>(extension: Ext) =>
export const make = <Ext extends object>(extension: () => Ext) =>
<
BaseClass extends ReffuseHelpers.ReffuseHelpersClass<R>,
R
@@ -13,6 +13,6 @@ export const make = <Ext extends object>(extension: Ext) =>
StaticType<BaseClass>
) => {
const class_ = class extends self {}
class_.prototype = { ...class_.prototype, ...extension } as any
Object.assign(class_.prototype, extension())
return class_ as any
}