MCPcopy Create free account
hub / github.com/anomalyco/opencode / isRecord

Function isRecord

packages/app/src/context/server.tsx:30–32  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

28}
29
30function isRecord(value: unknown): value is Record<string, unknown> {
31 return typeof value === "object" && value !== null && !Array.isArray(value)
32}
33
34export function migrateCanonicalLocalServerState(value: unknown, canonicalLocalServer?: ServerConnection.Key) {
35 if (!canonicalLocalServer || canonicalLocalServer === "local") return value

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected