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

Function isScalarInput

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

Source from the content-addressed store, hash-verified

686 )
687
688const isScalarInput = (ast: SchemaAST.AST): boolean => {
689 switch (ast._tag) {
690 case "Union":
691 return ast.types.every(isScalarInput)
692 case "Objects":
693 case "Arrays":
694 case "Suspend":
695 return false
696 default:
697 return true
698 }
699}
700
701const hasProviderInput = (
702 ast: SchemaAST.AST,

Callers 1

Config.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected