Skip to main content
Module

x/earthstar/src/entries/npm.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.2.2/src/entries/npm.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>