Skip to content
PACKAGES

memoryFragmentValidAt()

Returns true when a fragment is valid at asOf.

Omitted asOf has no clock to compare against, so it admits only fragments that are live and not valid-time delayed.

import { memoryFragmentValidAt } from "@graphrefly/ts/patterns";
function memoryFragmentValidAt(
fragment: MemoryFragment,
asOf?: bigint,
): boolean
ParameterTypeDescription
fragmentMemoryFragmentfragment value used by the helper.
asOfbigintas of value used by the helper.

A boolean value.

import { memoryFragmentValidAt } from "@graphrefly/ts/patterns";

packages/ts/src/patterns/semantic-memory.ts