Updated comments
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Julien Valverdé
2023-12-29 00:22:59 +01:00
parent b248f878a1
commit 13c2113aa2
2 changed files with 69 additions and 10 deletions

View File

@@ -3,10 +3,10 @@ import { expresses, trait } from "."
const Identifiable = <ID>() =>
trait(Parent => {
abstract class Identified extends Parent {
abstract id: ID
abstract class Identifiable extends Parent {
abstract readonly id: ID
equals(el: Identified) {
equals(el: Identifiable) {
return this.id === el.id
}
@@ -16,7 +16,7 @@ const Identifiable = <ID>() =>
}
}
return Identified
return Identifiable
})
const ImplementsIdentifiable = <ID>(defaultID: ID) =>