(this: Rational)
| 75 | return `Rational(${format(this)})` |
| 76 | }, |
| 77 | toJSON(this: Rational) { |
| 78 | return { |
| 79 | _id: "Rational", |
| 80 | numerator: String(this.numerator), |
| 81 | denominator: String(this.denominator) |
| 82 | } |
| 83 | }, |
| 84 | [NodeInspectSymbol](this: Rational) { |
| 85 | return this.toJSON() |
| 86 | }, |