MCPcopy Create free account
hub / github.com/Effect-TS/effect / defectFromJson

Function defectFromJson

packages/effect/src/SchemaTransformation.ts:1148–1152  ·  view source on GitHub ↗
(options?: ErrorOptions)

Source from the content-addressed store, hash-verified

1146
1147/** @internal */
1148export const defectFromJson = (options?: ErrorOptions) =>
1149 transform({
1150 decode: decodeDefect,
1151 encode: makeEncodeDefect(options)
1152 })
1153
1154/**
1155 * Decodes `T | null` into `Option<T>` and encodes `Option<T>` back to

Callers

nothing calls this directly

Calls 2

makeEncodeDefectFunction · 0.85
transformFunction · 0.70

Tested by

no test coverage detected