0.1.0 #1

Merged
Thilawyn merged 65 commits from next into master 2024-02-06 03:15:40 +01:00
Showing only changes of commit 9834856e8b - Show all commits

View File

@@ -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 = <ID>() => (
)
type Test = Simplify<TraitImpl<ReturnType<typeof Identifiable<bigint>>>>
const exp = expresses(Identifiable<bigint>())
class User implements typeof exp.implements()
class User implements ReturnType<typeof exp.implements> {
id: bigint = -1n
}