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

Function decodeSchema

packages/effect/src/encoding/JsonArray.ts:691–702  ·  view source on GitHub ↗
(
  schema: S
)

Source from the content-addressed store, hash-verified

689 * @since 4.0.6
690 */
691export const decodeSchema = <S extends Schema.Constraint>(
692 schema: S
693) =>
694<IE = never, Done = unknown>(options?: DecodeOptions): Channel.Channel<
695 Arr.NonEmptyReadonlyArray<S["Type"]>,
696 Schema.SchemaError | JsonArrayError | IE,
697 Done,
698 Arr.NonEmptyReadonlyArray<Uint8Array>,
699 IE,
700 Done,
701 S["DecodingServices"]
702> => Channel.pipeTo(decode(options), ChannelSchema.decodeUnknown(schema)())
703
704const stringify = (value: unknown): string => {
705 let output: string | undefined

Callers

nothing calls this directly

Calls 1

decodeFunction · 0.70

Tested by

no test coverage detected