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

Function isRecord

packages/opencode/src/tool/json-schema.ts:90–92  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

88}
89
90function isRecord(value: unknown): value is JsonObject {
91 return typeof value === "object" && value !== null && !Array.isArray(value)
92}
93
94function isJsonSchema(value: unknown): value is JSONSchema7 {
95 return typeof value === "boolean" || isRecord(value)

Callers 6

normalizeFunction · 0.70
isJsonSchemaFunction · 0.70
isEmptyStructUnionFunction · 0.70
inlineLocalReferencesFunction · 0.70
hasLocalReferenceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected