GraphReFlyTS

API Reference

isMemoryFragment()

Checks whether a value is a memory fragment.

Import

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

Signature

function isMemoryFragment(value: unknown): value is MemoryFragment

Parameters

ParameterTypeDescription
valueunknownUnknown value to check or decode.

Returns

true when the value matches the expected shape.

Example

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

Source

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