Function
packSchema
(
schema: Schema.Schema<A, I, R>
)
Source from the content-addressed store, hash-verified
| 117 | * @category constructors |
| 118 | */ |
| 119 | export const packSchema = <A, I, R>( |
| 120 | schema: Schema.Schema<A, I, R> |
| 121 | ) => |
| 122 | <IE = never, Done = unknown>(): Channel.Channel< |
| 123 | Chunk.Chunk<Uint8Array>, |
| 124 | Chunk.Chunk<A>, |
| 125 | IE | NdjsonError | ParseError, |
| 126 | IE, |
| 127 | Done, |
| 128 | Done, |
| 129 | R |
| 130 | > => Channel.pipeTo(ChannelSchema.encode(schema)(), pack()) |
| 131 | |
| 132 | /** |
| 133 | * @since 1.0.0 |
Callers
nothing calls this directly
Tested by
no test coverage detected