MCPcopy Create free account
hub / github.com/Effect-TS/effect / asNoContent

Function asNoContent

packages/effect/src/unstable/httpapi/HttpApiSchema.ts:205–219  ·  view source on GitHub ↗
(options: {
  readonly decode: LazyArg<S["Type"]>
})

Source from the content-addressed store, hash-verified

203 * @since 4.0.0
204 */
205export 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
221type StreamMode = "sse" | "uint8array"
222

Callers

nothing calls this directly

Calls 2

pipeMethod · 0.65
transformMethod · 0.65

Tested by

no test coverage detected