Function
packSchema
(
schema: Schema.Schema<A, I, R>
)
Source from the content-addressed store, hash-verified
| 86 | * @category constructors |
| 87 | */ |
| 88 | export const packSchema = <A, I, R>( |
| 89 | schema: Schema.Schema<A, I, R> |
| 90 | ) => |
| 91 | <IE = never, Done = unknown>(): Channel.Channel< |
| 92 | Chunk.Chunk<Uint8Array>, |
| 93 | Chunk.Chunk<A>, |
| 94 | IE | MsgPackError | ParseError, |
| 95 | IE, |
| 96 | Done, |
| 97 | Done, |
| 98 | R |
| 99 | > => Channel.pipeTo(ChannelSchema.encode(schema)(), pack()) |
| 100 | |
| 101 | /** |
| 102 | * @since 1.0.0 |
Callers
nothing calls this directly
Tested by
no test coverage detected