diff --git a/src/index.ts b/src/index.ts index 6524a48..787963f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -31,7 +31,7 @@ export type TraitApplier< (Parent: AbstractConstructor) => 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 = @@ -39,6 +39,10 @@ export type TraitClass = ? C : never +/** + * Returns the instance type of a trait. + * @template T - The trait type. + */ export type TraitInstance = T extends Trait ? InstanceType