committedFactJournalCursor()
Create one immutable domain-neutral fact-stream cursor.
Import
Section titled “Import”import { committedFactJournalCursor } from "@graphrefly/ts/committed-facts";Signature
Section titled “Signature”function committedFactJournalCursor( stream: string, position: number,): CommittedFactJournalCursorParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
stream | string | Stable domain-owned stream identifier. |
position | number | Non-negative safe-integer fact position. |
Returns
Section titled “Returns”A frozen strict-JSON fact-stream cursor.
Example
Section titled “Example”import { committedFactJournalCursor } from "@graphrefly/ts/committed-facts";
const cursor = committedFactJournalCursor("work-facts", 0);Source
Section titled “Source”packages/ts/src/committed-facts/index.ts