( schema: Schema.Schema<A, I, R> )
| 237 | * @category constructors |
| 238 | */ |
| 239 | export const unpackSchema = <A, I, R>( |
| 240 | schema: Schema.Schema<A, I, R> |
| 241 | ) => |
| 242 | <IE = never, Done = unknown>(options?: NdjsonOptions): Channel.Channel< |
| 243 | Chunk.Chunk<A>, |
| 244 | Chunk.Chunk<Uint8Array>, |
| 245 | NdjsonError | ParseError | IE, |
| 246 | IE, |
| 247 | Done, |
| 248 | Done, |
| 249 | R |
| 250 | > => Channel.pipeTo(unpack(options), ChannelSchema.decodeUnknown(schema)()) |
| 251 | |
| 252 | /** |
| 253 | * @since 1.0.0 |