makeJsonifiable -> toJsonifiable
All checks were successful
Lint / lint (push) Successful in 11s

This commit is contained in:
Julien Valverdé
2024-08-20 23:28:21 +02:00
parent 454c9d2354
commit 2eabef5246
3 changed files with 4 additions and 4 deletions

View File

@@ -2,9 +2,9 @@ export * from "./Class"
export * from "./DateTime"
export * from "./encodedAsPrismaJsonValue"
export * from "./Kind"
export * from "./makeJsonifiable"
export * as MobX from "./MobX"
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 makeJsonifiable = <
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 { makeJsonifiable, 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(
makeJsonifiable(S.Struct({
toJsonifiable(S.Struct({
...User.fields,
id: S.BigInt,
}))