(checks: SchemaAST.Checks | undefined)
| 856 | } |
| 857 | |
| 858 | function checksPortable(checks: SchemaAST.Checks | undefined): boolean { |
| 859 | if (checks === undefined) return true |
| 860 | return checks.every((check) => |
| 861 | check._tag === "Filter" |
| 862 | ? !check.aborted && |
| 863 | check.annotations?.meta !== undefined && |
| 864 | typeof check.annotations.arbitrary === "object" && |
| 865 | check.annotations.arbitrary !== null && |
| 866 | "constraint" in check.annotations.arbitrary |
| 867 | : checksPortable(check.checks), |
| 868 | ) |
| 869 | } |
| 870 | |
| 871 | function metadataPortable(ast: SchemaAST.AST, seen: Set<SchemaAST.AST>): boolean { |
| 872 | if (seen.has(ast)) return true |
no outgoing calls
no test coverage detected