MCPcopy
hub / github.com/Effect-TS/effect / unpackSchema

Function unpackSchema

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

Source from the content-addressed store, hash-verified

159 * @category constructors
160 */
161export const unpackSchema = <A, I, R>(
162 schema: Schema.Schema<A, I, R>
163) =>
164<IE = never, Done = unknown>(): Channel.Channel<
165 Chunk.Chunk<A>,
166 Chunk.Chunk<Uint8Array>,
167 MsgPackError | ParseError | IE,
168 IE,
169 Done,
170 Done,
171 R
172> => Channel.pipeTo(unpack(), ChannelSchema.decodeUnknown(schema)())
173
174/**
175 * @since 1.0.0

Callers

nothing calls this directly

Calls 1

unpackFunction · 0.70

Tested by

no test coverage detected