API Reference
validateMemoryFragment()
Validate the passive MemoryFragment shape without throwing.
Import
import { validateMemoryFragment } from "@graphrefly/ts/patterns";
Signature
function validateMemoryFragment(value: unknown): MemoryFragmentValidation
Parameters
| Parameter | Type | Description |
|---|---|---|
value | unknown | Unknown value to check or decode. |
Returns
Validation diagnostics or the validated projection.
Example
import { validateMemoryFragment } from "@graphrefly/ts/patterns";
Source
packages/ts/src/patterns/semantic-memory.ts