MCPcopy Index your code
hub / github.com/Effect-TS/effect / unpackSchemaString

Function unpackSchemaString

packages/platform/src/Ndjson.ts:256–267  ·  view source on GitHub ↗
(
  schema: Schema.Schema<A, I, R>
)

Source from the content-addressed store, hash-verified

254 * @category constructors
255 */
256export const unpackSchemaString = <A, I, R>(
257 schema: Schema.Schema<A, I, R>
258) =>
259<IE = never, Done = unknown>(options?: NdjsonOptions): Channel.Channel<
260 Chunk.Chunk<A>,
261 Chunk.Chunk<string>,
262 NdjsonError | ParseError | IE,
263 IE,
264 Done,
265 Done,
266 R
267> => Channel.pipeTo(unpackString(options), ChannelSchema.decodeUnknown(schema)())
268
269/**
270 * @since 1.0.0

Callers

nothing calls this directly

Calls 1

unpackStringFunction · 0.85

Tested by

no test coverage detected