(this: Duration)
| 380 | } |
| 381 | }, |
| 382 | toJSON(this: Duration) { |
| 383 | switch (this.value._tag) { |
| 384 | case "Millis": |
| 385 | return { _id: "Duration", _tag: "Millis", millis: this.value.millis } |
| 386 | case "Nanos": |
| 387 | return { _id: "Duration", _tag: "Nanos", nanos: String(this.value.nanos) } |
| 388 | case "Infinity": |
| 389 | return { _id: "Duration", _tag: "Infinity" } |
| 390 | case "NegativeInfinity": |
| 391 | return { _id: "Duration", _tag: "NegativeInfinity" } |
| 392 | } |
| 393 | }, |
| 394 | [NodeInspectSymbol]() { |
| 395 | return this.toJSON() |
| 396 | }, |