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