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 04da4b0f59 - Show all commits

View File

@@ -9,12 +9,8 @@ abstract class Identified<ID> {
} }
} }
abstract class ProvideIdentified<ID> extends Identified<ID> {
id!: ID
}
abstract class Permissible { abstract class Permissible {
protected permissions: string[] = [] permissions: string[] = []
} }
@@ -23,7 +19,16 @@ class User extends mixTraits(
// Identified<string>, // Identified<string>,
Permissible, 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)