0.1.12 (#13)
All checks were successful
Publish / publish (push) Successful in 15s
Lint / lint (push) Successful in 11s

Co-authored-by: Julien Valverdé <julien.valverde@mailo.com>
Reviewed-on: #13
This commit was merged in pull request #13.
This commit is contained in:
Julien Valverdé
2024-08-20 23:44:13 +02:00
parent 95db23b2be
commit c0433a8c76
4 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@thilawyn/thilalib",
"version": "0.1.11",
"version": "0.1.12",
"type": "module",
"files": [
"./dist"

View File

@@ -1,5 +1,4 @@
export * from "./Class"
export * from "./composeJsonifiable"
export * from "./DateTime"
export * from "./encodedAsPrismaJsonValue"
export * from "./Kind"
@@ -8,3 +7,4 @@ export * from "./MutableClass"
export * from "./MutableTaggedClass"
export * from "./Tag"
export * from "./TaggedClass"
export * from "./toJsonifiable"

View File

@@ -2,7 +2,7 @@ import { Schema } from "@effect/schema"
import type { JsonValue } from "type-fest"
export const composeJsonifiable = <
export const toJsonifiable = <
JsonifiableA,
JsonifiableI extends JsonValue,
JsonifiableR,

View File

@@ -1,7 +1,7 @@
import { Schema as S } from "@effect/schema"
import { reaction, runInAction } from "mobx"
import type { Simplify } from "type-fest"
import { composeJsonifiable, MutableTaggedClass } from "./Schema"
import { MutableTaggedClass, toJsonifiable } from "./Schema"
import { ObservableClass } from "./Schema/MobX"
import type { ExtendAll } from "./Types"
@@ -26,7 +26,7 @@ class User extends MutableTaggedClass<User>()("User", {
) {}
const JsonifiableUser = User.pipe(
composeJsonifiable(S.Struct({
toJsonifiable(S.Struct({
...User.fields,
id: S.BigInt,
}))