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

Function isRecord

packages/opencode/test/server/httpapi-provider.test.ts:41–43  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

39}
40
41function isRecord(value: unknown): value is Record<string, unknown> {
42 return typeof value === "object" && value !== null && !Array.isArray(value)
43}
44
45function providerList(input: unknown, key: "all" | "providers") {
46 if (!isRecord(input)) return []

Callers 4

providerListFunction · 0.70
providerByIDFunction · 0.70
hasNonZeroModelCostFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected