MCPcopy Index your code
hub / github.com/anomalyco/opencode / isRecord

Function isRecord

packages/opencode/test/server/httpapi-exercise/assertions.ts:42–44  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

40}
41
42export function isRecord(value: unknown): value is JsonObject {
43 return !!value && typeof value === "object" && !Array.isArray(value)
44}
45
46export function check(value: boolean, message: string): asserts value {
47 if (!value) throw new Error(message)

Callers 1

index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected