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

Function serializable

packages/httpapi-codegen/src/index.ts:933–938  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

931}
932
933function serializable(value: unknown): boolean {
934 if (value === null || ["string", "number", "boolean"].includes(typeof value)) return true
935 if (Array.isArray(value)) return value.every(serializable)
936 if (typeof value !== "object") return false
937 return Object.values(value).every(serializable)
938}
939
940function taggedErrorFields(schema: Schema.Top) {
941 const fields = declaredErrorFields(schema)

Callers 1

annotationsPortableFunction · 0.85

Calls 1

valuesMethod · 0.45

Tested by

no test coverage detected