MCPcopy Create free account
hub / github.com/Effect-TS/effect / encodeSchemaString

Function encodeSchemaString

packages/effect/src/encoding/Csv.ts:1075–1084  ·  view source on GitHub ↗
(schema: S)

Source from the content-addressed store, hash-verified

1073 */
1074export const encodeSchemaString =
1075 <S extends Schema.Constraint>(schema: S) =>
1076 <IE = never, Done = unknown>(options?: EncodeSchemaOptions<S>): Channel.Channel<
1077 Arr.NonEmptyReadonlyArray<string>,
1078 IE | Schema.SchemaError,
1079 Done,
1080 Arr.NonEmptyReadonlyArray<S["Type"]>,
1081 IE,
1082 Done,
1083 S["EncodingServices"]
1084 > => encodeSchemaRecords(schema, options)
1085
1086/**
1087 * Creates a channel that encodes values with a schema and writes them as UTF-8

Callers

nothing calls this directly

Calls 1

encodeSchemaRecordsFunction · 0.85

Tested by

no test coverage detected