committedFactJournalCursorCodec()
Build the default domain-neutral cursor codec for one named fact stream.
Import
Section titled “Import”import { committedFactJournalCursorCodec } from "@graphrefly/ts/committed-facts";Signature
Section titled “Signature”function committedFactJournalCursorCodec(stream: string): CommittedFactJournalCursorCodec<CommittedFactJournalCursor>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
stream | string | Stable domain-owned stream identifier. |
Returns
Section titled “Returns”A strict fact-position cursor codec scoped to stream.
Example
Section titled “Example”import { committedFactJournalCursorCodec } from "@graphrefly/ts/committed-facts";
const cursor = committedFactJournalCursorCodec("work-facts").initial();Source
Section titled “Source”packages/ts/src/committed-facts/index.ts