API Reference
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
import { fromIDBTransaction } from "@graphrefly/ts/sources/browser";
Signature
function fromIDBTransaction(transaction: IDBTransactionLike): Operator<never, never>
Parameters
| Parameter | Type | Description |
|---|---|---|
transaction | IDBTransactionLike | transaction value used by the helper. |
Returns
A Operator<never, never> value for the boundary or adapter.
Example
import { fromIDBTransaction } from "@graphrefly/ts/sources/browser";
Source
packages/ts/src/sources/browser.ts