import { MultiformatReplica } from "https://deno.land/x/earthstar@v10.0.1/mod.browser.ts";
Gets an attachment for a given document. Returns a ValidationError
if the given document can't have an attachment.
Type Parameters
optional
F = DefaultFormatParameters
doc: FormatDocType<F>
Returns
Promise<DocAttachment | undefined | ValidationError>