Project setup (#1)
All checks were successful
continuous-integration/drone/push Build is passing

Sets up project build and CI

Co-authored-by: Julien Valverdé <julien.valverde@mailo.com>
Reviewed-on: https://git.jvalver.de/Thilawyn/thilatrait/pulls/1
This commit was merged in pull request #1.
This commit is contained in:
Julien Valverdé
2023-12-09 02:22:38 +01:00
parent d7c80f0ba7
commit c6de7004d2
10 changed files with 360 additions and 0 deletions

29
src/tests.ts Normal file
View File

@@ -0,0 +1,29 @@
import { mixTraits } from "./trait"
abstract class Identified<ID> {
abstract id: ID
equals(el: Identified<ID>) {
return this.id === el.id
}
}
abstract class ProvideIdentified<ID> extends Identified<ID> {
id!: ID
}
abstract class Permissible {
protected permissions: string[] = []
}
class User extends mixTraits(
Identified<bigint>,
// Identified<string>,
Permissible,
) {
id: bigint = BigInt(-1)
}
const user = new User()