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

This commit is contained in:
Julien Valverdé
2024-02-05 22:49:37 +01:00
parent bf71170667
commit db15ee23ba
6 changed files with 23 additions and 40 deletions

View File

@@ -63,25 +63,16 @@ const exp = expression
PrintsHelloOnNew,
Identifiable<bigint>(),
// Identifiable<number>(),
StatefulSubscription,
ActiveStatefulSubscription,
)
.build()
type Abs = Implements<typeof exp>
// exp.subtrait(
// s => {
// interface Subtrait extends (typeof s) {
// }
// return abstract<Subtrait>()
// },
// )
class User extends exp.extends implements Implements<typeof exp> {
readonly isStatefulSubscription: true = true
declare status: { _tag: "awaitingPayment" } | { _tag: "active"; activeSince: Date; expiresAt?: Date | undefined } | { _tag: "expired"; expiredSince: Date }
readonly isActiveStatefulSubscription: true = true
declare status: { _tag: "active"; activeSince: Date; expiresAt?: Date | undefined }
id: bigint = -1n
}