0.1.0 #1
@@ -95,15 +95,15 @@ type ExtendsAndExpressesReturnType<
|
|||||||
Super extends AbstractClass<any>,
|
Super extends AbstractClass<any>,
|
||||||
Traits extends readonly Trait<any, any>[],
|
Traits extends readonly Trait<any, any>[],
|
||||||
> = (
|
> = (
|
||||||
Call<Tuples.IsEmpty, Traits> extends false ?
|
Call<Tuples.IsEmpty, Traits> extends true
|
||||||
AbstractMembersExtendable<Super, Traits> extends true ?
|
? "Cannot express an empty list of traits."
|
||||||
ImplInstanceExtendable<Super, Traits> extends true ?
|
: AbstractMembersExtendable<Super, Traits> extends false
|
||||||
ImplStaticMembersExtendable<Super, Traits> extends true ?
|
? "Type conflict between the traits abstract members and/or the superclass instance."
|
||||||
TraitExpression<Super, Traits>
|
: ImplInstanceExtendable<Super, Traits> extends false
|
||||||
: "Type conflict between the traits implementation static members and/or the superclass static members."
|
? "Type conflict between the traits implementation instances and/or the superclass instance."
|
||||||
: "Type conflict between the traits implementation instances and/or the superclass instance."
|
: ImplStaticMembersExtendable<Super, Traits> extends false
|
||||||
: "Type conflict between the traits abstract members and/or the superclass instance."
|
? "Type conflict between the traits implementation static members and/or the superclass static members."
|
||||||
: "Cannot express an empty list of traits."
|
: TraitExpression<Super, Traits>
|
||||||
)
|
)
|
||||||
|
|
||||||
export function extendsAndExpresses<
|
export function extendsAndExpresses<
|
||||||
|
|||||||
Reference in New Issue
Block a user