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