(this: Duration)
| 368 | return isDuration(that) && equals(this, that) |
| 369 | }, |
| 370 | toString(this: Duration) { |
| 371 | switch (this.value._tag) { |
| 372 | case "Infinity": |
| 373 | return "Infinity" |
| 374 | case "NegativeInfinity": |
| 375 | return "-Infinity" |
| 376 | case "Nanos": |
| 377 | return `${this.value.nanos} nanos` |
| 378 | case "Millis": |
| 379 | return `${this.value.millis} millis` |
| 380 | } |
| 381 | }, |
| 382 | toJSON(this: Duration) { |
| 383 | switch (this.value._tag) { |
| 384 | case "Millis": |
nothing calls this directly
no outgoing calls
no test coverage detected