MCPcopy
hub / github.com/anomalyco/opencode / isZodType

Function isZodType

packages/opencode/src/tool/registry.ts:317–319  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

315)
316
317function isZodType(value: unknown): value is z.ZodType {
318 return typeof value === "object" && value !== null && "_zod" in value
319}
320
321function isPluginTool(value: unknown): value is ToolDefinition {
322 return typeof value === "object" && value !== null && "args" in value && "description" in value && "execute" in value

Callers 2

fromPluginFunction · 0.85
collectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected