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 096d4a92e7 - Show all commits

View File

@@ -1,4 +1,20 @@
import { trait } from "."
const PrintsHelloOnNew = trait()
const PrintsHelloOnNew = trait()(Super =>
class PrintsHelloOnNew extends Super {
constructor(...args: any[]) {
super(...args)
console.log("Hello!")
}
}
)
const Identifiable = <ID>() =>
trait<{ id: ID }>()(Super =>
class Identifiable extends Super {
equals(el: Identifiable) {
return this.id === el.id
}
}
)