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

Function unpackSchema

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

Source from the content-addressed store, hash-verified

237 * @category constructors
238 */
239export const unpackSchema = <A, I, R>(
240 schema: Schema.Schema<A, I, R>
241) =>
242<IE = never, Done = unknown>(options?: NdjsonOptions): Channel.Channel<
243 Chunk.Chunk<A>,
244 Chunk.Chunk<Uint8Array>,
245 NdjsonError | ParseError | IE,
246 IE,
247 Done,
248 Done,
249 R
250> => Channel.pipeTo(unpack(options), ChannelSchema.decodeUnknown(schema)())
251
252/**
253 * @since 1.0.0

Callers

nothing calls this directly

Calls 1

unpackFunction · 0.70

Tested by

no test coverage detected