MCPcopy Create free account
hub / github.com/Effect-TS/effect / parameterHasSymbol

Function parameterHasSymbol

packages/effect/src/encoding/SchemaBinary.ts:2271–2280  ·  view source on GitHub ↗
(parameter: SchemaAST.AST)

Source from the content-addressed store, hash-verified

2269}
2270
2271function parameterHasSymbol(parameter: SchemaAST.AST): boolean {
2272 switch (parameter._tag) {
2273 case "Symbol":
2274 return true
2275 case "Union":
2276 return parameter.types.some(parameterHasSymbol)
2277 default:
2278 return false
2279 }
2280}
2281
2282function isJsonDeclaration(ast: SchemaAST.Declaration): boolean {
2283 const id = representationId(ast)

Callers 1

compileStructFunction · 0.85

Calls 1

someMethod · 0.80

Tested by

no test coverage detected