0.1.0 #1

Merged
Thilawyn merged 65 commits from next into master 2024-02-06 03:15:40 +01:00
Showing only changes of commit 2d32e4807d - Show all commits

View File

@@ -1,6 +1,5 @@
import { Call, ComposeLeft, Pipe } from "hotscript"
import { Implements, TraitExpressionAbstractFn, TraitExpressionTraitsFn, abstract, expression, trait } from "."
import { Simplify } from "type-fest"
import { Call, ComposeLeft } from "hotscript"
import { Implements, TraitExpressionAbstractFn, abstract, expression, trait } from "."
import { SimplifyFn } from "./util"
@@ -66,15 +65,15 @@ type Abs = Call<ComposeLeft<[
SimplifyFn,
]>, typeof exp>
exp.subtrait(
s => {
interface Subtrait extends (typeof s) {
// exp.subtrait(
// s => {
// interface Subtrait extends (typeof s) {
}
// }
return abstract<Subtrait>()
},
)
// return abstract<Subtrait>()
// },
// )
class User extends exp.extends implements Implements<typeof exp> {
declare status: { _tag: "awaitingPayment" } | { _tag: "active"; activeSince: Date; expiresAt?: Date | undefined } | { _tag: "expired"; expiredSince: Date }