Fixed!
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Julien Valverdé
2024-02-05 00:43:41 +01:00
parent 463c8f1586
commit 7b73cfbf92
2 changed files with 3 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ class TraitExpressionBuilder<
OwnTraits extends Trait<any, any, any>[], OwnTraits extends Trait<any, any, any>[],
AllTraits extends Trait<any, any, any>[], AllTraits extends Trait<any, any, any>[],
> { > {
constructor(public expression: TraitExpression<Super, OwnTraits, AllTraits>) {} constructor(private expression: TraitExpression<Super, OwnTraits, AllTraits>) {}
extends< extends<
NewSuper extends AbstractClass<any> NewSuper extends AbstractClass<any>
@@ -30,7 +30,7 @@ class TraitExpressionBuilder<
): TraitExpressionBuilder< ): TraitExpressionBuilder<
Super, Super,
[...OwnTraits, ...Traits], [...OwnTraits, ...Traits],
[...AllTraits, SpreadSupertraits<Traits>] [...AllTraits, ...SpreadSupertraits<Traits>]
> { > {
return new TraitExpressionBuilder( return new TraitExpressionBuilder(
new TraitExpression( new TraitExpression(

View File

@@ -1,4 +1,4 @@
import { Implements, TraitExpression, abstract, expression, trait } from "." import { Implements, abstract, expression, trait } from "."
const PrintsHelloOnNew = trait( const PrintsHelloOnNew = trait(
@@ -57,8 +57,6 @@ const builder = expression
StatefulSubscription, StatefulSubscription,
) )
type T = TraitExpression.AllTraits<typeof builder.expression>
const exp = builder.get() const exp = builder.get()
type Abs = Implements<typeof exp> type Abs = Implements<typeof exp>