| 437 | * @since 4.0.0 |
| 438 | */ |
| 439 | export const decodeSchema = <S extends Schema.Constraint>( |
| 440 | schema: S |
| 441 | ) => |
| 442 | <IE = never, Done = unknown>(options?: { |
| 443 | readonly ignoreEmptyLines?: boolean | undefined |
| 444 | readonly maxLineBytes?: number | undefined |
| 445 | }): Channel.Channel< |
| 446 | Arr.NonEmptyReadonlyArray<S["Type"]>, |
| 447 | Schema.SchemaError | NdjsonError | IE, |
| 448 | Done, |
| 449 | Arr.NonEmptyReadonlyArray<Uint8Array>, |
| 450 | IE, |
| 451 | Done, |
| 452 | S["DecodingServices"] |
| 453 | > => Channel.pipeTo(decode(options), ChannelSchema.decodeUnknown(schema)()) |
| 454 | |
| 455 | /** |
| 456 | * Creates an NDJSON string decoder channel for values of a schema. |