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