First version: 20231229.0.0 #2

Merged
Thilawyn merged 21 commits from next into master 2023-12-29 01:07:07 +01:00
Showing only changes of commit 26adebda54 - Show all commits

View File

@@ -3,15 +3,15 @@ import { extendsAndExpresses, trait } from "./trait-inheritance"
const Identified = <ID>() =>
trait(Parent => {
abstract class Identified<ID> extends Parent {
abstract class Identified extends Parent {
abstract id: ID
equals(el: Identified<ID>) {
equals(el: Identified) {
return this.id === el.id
}
}
return Identified<ID>
return Identified
})