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

Function asUint8Array

packages/effect/src/unstable/httpapi/HttpApiSchema.ts:904–909  ·  view source on GitHub ↗
(options?: {
  readonly contentType?: string
})

Source from the content-addressed store, hash-verified

902 * @since 4.0.0
903 */
904export function asUint8Array(options?: {
905 readonly contentType?: string
906}) {
907 return <S extends Schema.Top & { readonly Encoded: Uint8Array }>(self: S) =>
908 asNonMultipartEncoding(self, { _tag: "Uint8Array", ...options })
909}
910/**
911 * Returns `true` when a schema AST represents a no-content response.
912 *

Callers

nothing calls this directly

Calls 1

asNonMultipartEncodingFunction · 0.85

Tested by

no test coverage detected