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

Function packSchema

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

Source from the content-addressed store, hash-verified

117 * @category constructors
118 */
119export const packSchema = <A, I, R>(
120 schema: Schema.Schema<A, I, R>
121) =>
122<IE = never, Done = unknown>(): Channel.Channel<
123 Chunk.Chunk<Uint8Array>,
124 Chunk.Chunk<A>,
125 IE | NdjsonError | ParseError,
126 IE,
127 Done,
128 Done,
129 R
130> => Channel.pipeTo(ChannelSchema.encode(schema)(), pack())
131
132/**
133 * @since 1.0.0

Callers

nothing calls this directly

Calls 2

encodeMethod · 0.80
packFunction · 0.70

Tested by

no test coverage detected