Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/earthstar/src/replica/attachment_drivers/indexeddb.ts>AttachmentDriverIndexedDB#stage

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
method AttachmentDriverIndexedDB.prototype.stage
import { AttachmentDriverIndexedDB } from "https://deno.land/x/earthstar@v10.0.0-alpha.2/src/replica/attachment_drivers/indexeddb.ts";

Parameters

formatName: string
attachment: Uint8Array | ReadableStream<Uint8Array>

Returns

Promise<{ hash: string; size: number; commit: () => Promise<void>; reject: () => Promise<void>; } | ValidationError>