(ast: AST)
| 3785 | |
| 3786 | /** @internal */ |
| 3787 | export 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 | |
| 3798 | function fromConst<const T>( |
| 3799 | ast: AST, |