This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
import { dejsonifyOption, jsonifyOption } from "./jsonifiedOption"
|
||||
import { option } from "./option"
|
||||
|
||||
|
||||
export const effect = {
|
||||
option,
|
||||
} as const
|
||||
|
||||
export { effectOptionNoneSchema, effectOptionSomeInnerSchema, effectOptionSomeSchema, type ZodEffectOption, type ZodEffectOptionNone, type ZodEffectOptionSome } from "./option"
|
||||
jsonify: {
|
||||
option: jsonifyOption
|
||||
} as const,
|
||||
dejsonify: {
|
||||
option: dejsonifyOption
|
||||
} as const,
|
||||
} as const
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Option } from "effect"
|
||||
import { identity } from "lodash-es"
|
||||
import { z } from "zod"
|
||||
import { ZodEffectOption, ZodEffectOptionNone, ZodEffectOptionSome, effectOptionNoneSchema, effectOptionSomeInnerSchema, effectOptionSomeSchema } from "../effect"
|
||||
import { ZodEffectOption, ZodEffectOptionNone, ZodEffectOptionSome, effectOptionNoneSchema, effectOptionSomeInnerSchema, effectOptionSomeSchema } from "./option"
|
||||
|
||||
|
||||
export type JsonifiedEffectOptionSomeBrand = "@thilawyn/zod-schema-class/JsonifiedEffectOptionSome"
|
||||
@@ -1,19 +1,16 @@
|
||||
import { dejsonifyBigIntSchema, jsonifyBigIntSchema } from "./bigint"
|
||||
import { dejsonifyDateSchema, jsonifyDateSchema } from "./date"
|
||||
import { dejsonifyDecimalSchema, jsonifyDecimalSchema } from "./decimal"
|
||||
import { dejsonifyOption, jsonifyOption } from "./option"
|
||||
|
||||
|
||||
export const jsonify = {
|
||||
bigint: jsonifyBigIntSchema,
|
||||
date: jsonifyDateSchema,
|
||||
decimal: jsonifyDecimalSchema,
|
||||
option: jsonifyOption,
|
||||
} as const
|
||||
|
||||
export const dejsonify = {
|
||||
bigint: dejsonifyBigIntSchema,
|
||||
date: dejsonifyDateSchema,
|
||||
decimal: dejsonifyDecimalSchema,
|
||||
option: dejsonifyOption,
|
||||
} as const
|
||||
|
||||
Reference in New Issue
Block a user