Defjs
Core

struct.blob

Struct that accepts a Blob.

@defjs/core · Function

Signature

function blob(): Struct<Blob, Blob>;
  • Accepts a Blob (a File is a Blob). Anything else fails with invalid_type.

  • As a body root it is sent as is, with the blob's own type or application/octet-stream.

  • As an output or error struct it makes the response body be read as a Blob.

Edit this page on GitHub
Released under the MIT License. · Copyright © 2026 MunMunMiao