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

Function containsUndefined

packages/effect/src/SchemaAST.ts:3787–3796  ·  view source on GitHub ↗
(ast: AST)

Source from the content-addressed store, hash-verified

3785
3786/** @internal */
3787export function containsUndefined(ast: AST): boolean {
3788 switch (ast._tag) {
3789 case "Undefined":
3790 return true
3791 case "Union":
3792 return ast.types.some(containsUndefined)
3793 default:
3794 return false
3795 }
3796}
3797
3798function fromConst<const T>(
3799 ast: AST,

Callers 1

constructorMethod · 0.85

Calls 1

someMethod · 0.80

Tested by

no test coverage detected