0.1.4 #5

Merged
Thilawyn merged 8 commits from next into master 2024-06-27 18:47:12 +02:00
Showing only changes of commit 7a456129a1 - Show all commits

View File

@@ -1,15 +1,13 @@
import { Schema as S } from "@effect/schema"
import { pipe } from "effect"
import { reaction, runInAction } from "mobx"
import { MobXObservable, MutableTaggedClass } from "./class"
class User extends pipe(
MutableTaggedClass<User>()("User", {
id: S.BigIntFromSelf,
role: S.Union(S.Literal("BasicUser"), S.Literal("Admin")),
}),
MobXObservable,
class User extends MutableTaggedClass<User>()("User", {
id: S.BigIntFromSelf,
role: S.Union(S.Literal("BasicUser"), S.Literal("Admin")),
}).pipe(
MobXObservable
) {}
const user1 = new User({ id: -1n, role: "BasicUser" })