MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / isRecord

Function isRecord

src/store/migration.ts:70–72  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

68let migrationAttempted = false;
69
70function isRecord(value: unknown): value is Record<string, unknown> {
71 return typeof value === 'object' && value !== null && !Array.isArray(value);
72}
73
74export function parseLegacyPersistedState(legacyData: string): Record<string, unknown> | null {
75 try {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected