( schema: S )
| 836 | * @since 4.0.6 |
| 837 | */ |
| 838 | export const encodeSchema = <S extends Schema.Constraint>( |
| 839 | schema: S |
| 840 | ) => |
| 841 | <IE = never, Done = unknown>(): Channel.Channel< |
| 842 | Arr.NonEmptyReadonlyArray<Uint8Array>, |
| 843 | JsonArrayError | Schema.SchemaError | IE, |
| 844 | Done, |
| 845 | Arr.NonEmptyReadonlyArray<S["Type"]>, |
| 846 | IE, |
| 847 | Done, |
| 848 | S["EncodingServices"] |
| 849 | > => Channel.pipeTo(ChannelSchema.encode(schema)(), encode()) |