isMemoryFragment()
Checks whether a value is a memory fragment.
Import
Section titled “Import”import { isMemoryFragment } from "@graphrefly/ts/patterns";Signature
Section titled “Signature”function isMemoryFragment(value: unknown): value is MemoryFragmentParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | unknown | Unknown value to check or decode. |
Returns
Section titled “Returns”true when the value matches the expected shape.
Example
Section titled “Example”import { isMemoryFragment } from "@graphrefly/ts/memory/semantic";Source
Section titled “Source”packages/ts/src/patterns/semantic-memory.ts