( schema: S )
| 814 | * @since 4.0.6 |
| 815 | */ |
| 816 | export const encodeSchemaString = <S extends Schema.Constraint>( |
| 817 | schema: S |
| 818 | ) => |
| 819 | <IE = never, Done = unknown>(): Channel.Channel< |
| 820 | Arr.NonEmptyReadonlyArray<string>, |
| 821 | JsonArrayError | Schema.SchemaError | IE, |
| 822 | Done, |
| 823 | Arr.NonEmptyReadonlyArray<S["Type"]>, |
| 824 | IE, |
| 825 | Done, |
| 826 | S["EncodingServices"] |
| 827 | > => Channel.pipeTo(ChannelSchema.encode(schema)(), encodeString()) |
| 828 | |
| 829 | /** |
| 830 | * Creates a channel that encodes values with a schema and writes them as UTF-8 |
nothing calls this directly
no test coverage detected