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

Function packSchema

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

Source from the content-addressed store, hash-verified

86 * @category constructors
87 */
88export const packSchema = <A, I, R>(
89 schema: Schema.Schema<A, I, R>
90) =>
91<IE = never, Done = unknown>(): Channel.Channel<
92 Chunk.Chunk<Uint8Array>,
93 Chunk.Chunk<A>,
94 IE | MsgPackError | ParseError,
95 IE,
96 Done,
97 Done,
98 R
99> => Channel.pipeTo(ChannelSchema.encode(schema)(), pack())
100
101/**
102 * @since 1.0.0

Callers

nothing calls this directly

Calls 2

encodeMethod · 0.80
packFunction · 0.70

Tested by

no test coverage detected