Skip to content
PACKAGES

isMemoryFragment()

Checks whether a value is a memory fragment.

import { isMemoryFragment } from "@graphrefly/ts/patterns";
function isMemoryFragment(value: unknown): value is MemoryFragment
ParameterTypeDescription
valueunknownUnknown value to check or decode.

true when the value matches the expected shape.

import { isMemoryFragment } from "@graphrefly/ts/memory/semantic";

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