()
| 667 | let transform: Schema.Schema.Any | undefined |
| 668 | Object.defineProperty(EmptyError, "ast", { |
| 669 | get() { |
| 670 | if (transform) { |
| 671 | return transform.ast |
| 672 | } |
| 673 | const self = this as any |
| 674 | transform = asEmpty( |
| 675 | Schema.declare((u) => hasProperty(u, symbol), { |
| 676 | identifier: options.tag, |
| 677 | title: options.tag |
| 678 | }), |
| 679 | { |
| 680 | status: options.status, |
| 681 | decode: constant(new self()) |
| 682 | } |
| 683 | ) |
| 684 | return transform.ast |
| 685 | } |
| 686 | }) |
| 687 | return EmptyError as any |
| 688 | } |