Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/earthstar/mod.ts>MultiformatReplica#getAttachment

Storage for private, distributed, offline-first applications.
Go to Latest
method MultiformatReplica.prototype.getAttachment
Re-export
import { MultiformatReplica } from "https://deno.land/x/earthstar@v10.0.1/mod.ts";

Gets an attachment for a given document. Returns a ValidationError if the given document can't have an attachment.

Parameters

optional
format: FormatArg<F> = [UNSUPPORTED]

Returns

Promise<DocAttachment | undefined | ValidationError>