This commit is contained in:
15
src/tests.ts
15
src/tests.ts
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user