Skip to content
PACKAGES

fromIDBTransaction()

Wrap an IndexedDB transaction lifecycle as a terminal-only source.

Success emits COMPLETE without DATA: undefined is the TypeScript SENTINEL and cannot be a DATA payload under R-data-payload.

import { fromIDBTransaction } from "@graphrefly/ts/sources/browser";
function fromIDBTransaction(transaction: IDBTransactionLike): Operator<never, never>
ParameterTypeDescription
transactionIDBTransactionLiketransaction value used by the helper.

A Operator<never, never> value for the boundary or adapter.

import { fromIDBTransaction } from "@graphrefly/ts/sources/browser";

packages/ts/src/sources/browser.ts