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

This commit is contained in:
Julien Valverdé
2023-12-09 03:03:09 +01:00
parent e814fa8916
commit 04da4b0f59

View File

@@ -9,12 +9,8 @@ abstract class Identified<ID> {
}
}
abstract class ProvideIdentified<ID> extends Identified<ID> {
id!: ID
}
abstract class Permissible {
protected permissions: string[] = []
permissions: string[] = []
}
@@ -23,7 +19,16 @@ class User extends mixTraits(
// Identified<string>,
Permissible,
) {
id: bigint = BigInt(-1)
readonly id: bigint
constructor(id: bigint) {
super()
this.id = id
}
}
const user = new User()
const user1 = new User(BigInt(1))
const user2 = new User(BigInt(2))
console.log(user1.equals(user2))
console.log(user1.permissions)