diff --git a/src/tests.ts b/src/tests.ts index 9b096a8..0cc019f 100644 --- a/src/tests.ts +++ b/src/tests.ts @@ -1,4 +1,5 @@ -import { expresses, trait } from "." +import { Simplify } from "type-fest" +import { TraitAbstractMembers, TraitImpl, TraitInstance, expresses, trait } from "." const PrintsHelloOnNew = trait()(Super => @@ -21,6 +22,10 @@ const Identifiable = () => ( ) +type Test = Simplify>>> + const exp = expresses(Identifiable()) -class User implements typeof exp.implements() +class User implements ReturnType { + id: bigint = -1n +}