extendAbstract
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Julien Valverdé
2024-02-14 21:57:48 +01:00
parent 1758649507
commit a065daec1e
2 changed files with 25 additions and 4 deletions

View File

@@ -57,6 +57,19 @@ export class TraitBuilder<
)
}
extendAbstract<
A extends Abstract
>(
abstract: (Super: AbstractClass<Abstract>) => AbstractClass<A, []>
) {
return new TraitBuilder(
this.traitSuperExpression,
{} as A,
this.traitStaticAbstract,
this.traitApply,
)
}
implement<
ImplClassWithAbstract extends (
Class<Abstract, []> &