@internal
()
| 1426 | } |
| 1427 | /** @internal */ |
| 1428 | toCodecJson(): AST { |
| 1429 | if ( |
| 1430 | this.checks && |
| 1431 | (hasCheck(this.checks, "effect/schema/isFinite") || hasCheck(this.checks, "effect/schema/isInt")) |
| 1432 | ) { |
| 1433 | return this |
| 1434 | } |
| 1435 | return replaceEncoding(this, [numberToJson(this.checks)]) |
| 1436 | } |
| 1437 | /** @internal */ |
| 1438 | toCodecStringTree(): AST { |
| 1439 | if (this.toCodecJson() === this) { |
no test coverage detected