MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / nullableString

Function nullableString

graph-ui/src/settings/config-model.ts:31–31  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

29}
30const record = (value: unknown): value is Record<string, unknown> => !!value && typeof value === 'object' && !Array.isArray(value);
31const nullableString = (value: unknown): value is string | null => value === null || typeof value === 'string';
32
33export function readConfigSnapshot(value: unknown): ConfigSnapshot {
34 if (!record(value) || typeof value.revision !== 'string' || !Array.isArray(value.settings)) throw new Error('The daemon returned an invalid configuration snapshot.');

Callers 1

readConfigSnapshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected