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

Function decodeSchemaString

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

Source from the content-addressed store, hash-verified

667 * @since 4.0.6
668 */
669export const decodeSchemaString = <S extends Schema.Constraint>(
670 schema: S
671) =>
672<IE = never, Done = unknown>(options?: DecodeOptions): Channel.Channel<
673 Arr.NonEmptyReadonlyArray<S["Type"]>,
674 Schema.SchemaError | JsonArrayError | IE,
675 Done,
676 Arr.NonEmptyReadonlyArray<string>,
677 IE,
678 Done,
679 S["DecodingServices"]
680> => Channel.pipeTo(decodeString(options), ChannelSchema.decodeUnknown(schema)())
681
682/**
683 * Creates a channel that parses UTF-8 bytes of one JSON document and decodes

Callers

nothing calls this directly

Calls 1

decodeStringFunction · 0.70

Tested by

no test coverage detected