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

This commit is contained in:
Julien Valverdé
2024-02-17 03:31:46 +01:00
parent 932d8576d9
commit 15c5548fde
2 changed files with 34 additions and 10 deletions

View File

@@ -87,3 +87,20 @@ class User extends exp.extends implements Implements<typeof exp> {
}
console.log(new User())
// class Test1 {
// prop1: string = "ouient"
// prop2: bigint = 1n
// }
// class Test2 extends Test1 {
// readonly prop1 = "juif"
// prop3: number = 69
// }
// type PureKeys<T, U> = {
// [K in keyof T]: K extends keyof U ? T[K] extends U[K] ? never : K : K;
// }[keyof T]
// type T = PureKeys<Test2, Test1>