( schema: Schema.Schema<A, I, R> )
| 134 | * @category constructors |
| 135 | */ |
| 136 | export const packSchemaString = <A, I, R>( |
| 137 | schema: Schema.Schema<A, I, R> |
| 138 | ) => |
| 139 | <IE = never, Done = unknown>(): Channel.Channel< |
| 140 | Chunk.Chunk<string>, |
| 141 | Chunk.Chunk<A>, |
| 142 | IE | NdjsonError | ParseError, |
| 143 | IE, |
| 144 | Done, |
| 145 | Done, |
| 146 | R |
| 147 | > => Channel.pipeTo(ChannelSchema.encode(schema)(), packString()) |
| 148 | |
| 149 | const filterEmpty = Chunk.filter<string>((line) => line.length > 0) |
| 150 | const filterEmptyChannel = <IE, Done>() => { |
nothing calls this directly
no test coverage detected