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

Function optionalArray

packages/llm/src/protocols/shared.ts:24–24  ·  view source on GitHub ↗
(schema: S)

Source from the content-addressed store, hash-verified

22const isJson = Schema.is(Schema.Json)
23export const JsonObject = Schema.Record(Schema.String, Schema.Unknown)
24export const optionalArray = <const S extends Schema.Top>(schema: S) => Schema.optional(Schema.Array(schema))
25export const optionalNull = <const S extends Schema.Top>(schema: S) => Schema.optional(Schema.NullOr(schema))
26
27/**

Callers 5

openai-chat.tsFile · 0.90
gemini.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected