( schema: S )
| 181 | * @since 4.0.0 |
| 182 | */ |
| 183 | export const encodeSchemaString = <S extends Schema.Constraint>( |
| 184 | schema: S |
| 185 | ) => |
| 186 | <IE = never, Done = unknown>(): Channel.Channel< |
| 187 | Arr.NonEmptyReadonlyArray<string>, |
| 188 | NdjsonError | Schema.SchemaError | IE, |
| 189 | Done, |
| 190 | Arr.NonEmptyReadonlyArray<S["Type"]>, |
| 191 | IE, |
| 192 | Done, |
| 193 | S["EncodingServices"] |
| 194 | > => Channel.pipeTo(ChannelSchema.encode(schema)(), encodeString()) |
| 195 | |
| 196 | // Collects the values of one input chunk into `out`. A failure stops the |
| 197 | // chunk, and the values collected before it are still emitted. |
nothing calls this directly
no test coverage detected