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

Function packSchemaString

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

Source from the content-addressed store, hash-verified

134 * @category constructors
135 */
136export const packSchemaString = <A, I, R>(
137 schema: Schema.Schema<A, I, R>
138) =>
139<IE = never, Done = unknown>(): Channel.Channel<
140 Chunk.Chunk<string>,
141 Chunk.Chunk<A>,
142 IE | NdjsonError | ParseError,
143 IE,
144 Done,
145 Done,
146 R
147> => Channel.pipeTo(ChannelSchema.encode(schema)(), packString())
148
149const filterEmpty = Chunk.filter<string>((line) => line.length > 0)
150const filterEmptyChannel = <IE, Done>() => {

Callers

nothing calls this directly

Calls 2

packStringFunction · 0.85
encodeMethod · 0.80

Tested by

no test coverage detected