effect-io-ai

Package: effect
Module: ChannelSchema

ChannelSchema.encodeUnknown

Creates an encode channel variant whose encoded output chunks are typed as unknown.

When to use

Use when a channel boundary should encode typed input chunks while the encoded output representation is intentionally untyped.

See

Signature

declare const encodeUnknown: <S extends Schema.Constraint>(schema: S) => <IE = never, Done = unknown>() => Channel.Channel<Arr.NonEmptyReadonlyArray<unknown>, IE | Schema.SchemaError, Done, Arr.NonEmptyReadonlyArray<S["Type"]>, IE, Done, S["EncodingServices"]>

Source

Since v4.0.0