From ead484414586d42a540b1209a27e89de5378c0a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Valverd=C3=A9?= Date: Sun, 7 Jan 2024 20:55:11 +0100 Subject: [PATCH] Doc --- src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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