Function
asNoContent
(options: {
readonly decode: LazyArg<S["Type"]>
})
Source from the content-addressed store, hash-verified
| 203 | * @since 4.0.0 |
| 204 | */ |
| 205 | export function asNoContent<S extends Schema.Constraint>(options: { |
| 206 | readonly decode: LazyArg<S["Type"]> |
| 207 | }) { |
| 208 | return (self: S): asNoContent<S> => { |
| 209 | return Schema.Void.pipe( |
| 210 | Schema.decodeTo( |
| 211 | Schema.toType(self), |
| 212 | SchemaTransformation.transform({ |
| 213 | decode: options.decode, |
| 214 | encode: constVoid |
| 215 | }) |
| 216 | ) |
| 217 | ) |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | type StreamMode = "sse" | "uint8array" |
| 222 | |
Callers
nothing calls this directly
Tested by
no test coverage detected