From 420c2e83384b2f19fcd2b452a57b45b77ffc3df0 Mon Sep 17 00:00:00 2001 From: Alin Eugen Deac Date: Sun, 4 Feb 2024 17:46:04 +0100 Subject: [PATCH] Improve type alias for mixin Still not really applicable when defining a mixin, but still accepted by the @mixin decorator. --- packages/contracts/src/support/mixins/types.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/contracts/src/support/mixins/types.ts b/packages/contracts/src/support/mixins/types.ts index 38d0d218..e181516a 100644 --- a/packages/contracts/src/support/mixins/types.ts +++ b/packages/contracts/src/support/mixins/types.ts @@ -1,4 +1,4 @@ -import type {Constructor, AbstractConstructor} from "@aedart/contracts"; +import type { AbstractConstructor } from "@aedart/contracts"; /** * Abstract subclass or "Mix-in" @@ -14,5 +14,5 @@ import type {Constructor, AbstractConstructor} from "@aedart/contracts"; */ export type Mixin< SuperClass extends AbstractConstructor = object, - MixinClass extends Constructor = object -> = (superclass: SuperClass) => SuperClass & MixinClass; \ No newline at end of file + AbstractSubclass extends AbstractConstructor = object +> = (superclass: SuperClass) => AbstractSubclass & SuperClass; \ No newline at end of file