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

Function isScalarInput

packages/effect/src/Config.ts:699–710  ·  view source on GitHub ↗
(ast: SchemaAST.AST)

Source from the content-addressed store, hash-verified

697 )
698
699const isScalarInput = (ast: SchemaAST.AST): boolean => {
700 switch (ast._tag) {
701 case "Union":
702 return ast.types.every(isScalarInput)
703 case "Objects":
704 case "Arrays":
705 case "Suspend":
706 return false
707 default:
708 return true
709 }
710}
711
712const hasProviderInput = (
713 ast: SchemaAST.AST,

Callers 1

Config.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected