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

This commit is contained in:
Julien Valverdé
2024-01-07 20:55:11 +01:00
parent 487c2b7255
commit ead4844145

View File

@@ -31,7 +31,7 @@ export type TraitApplier<
(Parent: AbstractConstructor<any>) => C
/**
* Unwraps the type of the class from a given trait.
* Returns the class type of a trait.
* @template T - The trait type.
*/
export type TraitClass<T> =
@@ -39,6 +39,10 @@ export type TraitClass<T> =
? C
: never
/**
* Returns the instance type of a trait.
* @template T - The trait type.
*/
export type TraitInstance<T> =
T extends Trait<infer C>
? InstanceType<C>