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

Function object

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

Source from the content-addressed store, hash-verified

32}
33
34export function object(value: unknown): asserts value is JsonObject {
35 if (!value || typeof value !== "object" || Array.isArray(value)) throw new Error("expected object")
36}
37
38export function boolean(value: unknown): asserts value is boolean {
39 if (typeof value !== "boolean") throw new Error("expected boolean")

Callers 3

dataFunction · 0.90
locationDataFunction · 0.90
index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected