(this: Duration)
| 164 | return `Duration(${format(this)})` |
| 165 | }, |
| 166 | toJSON(this: Duration) { |
| 167 | switch (this.value._tag) { |
| 168 | case "Millis": |
| 169 | return { _id: "Duration", _tag: "Millis", millis: this.value.millis } |
| 170 | case "Nanos": |
| 171 | return { _id: "Duration", _tag: "Nanos", hrtime: toHrTime(this) } |
| 172 | case "Infinity": |
| 173 | return { _id: "Duration", _tag: "Infinity" } |
| 174 | } |
| 175 | }, |
| 176 | [NodeInspectSymbol]() { |
| 177 | return this.toJSON() |
| 178 | }, |
nothing calls this directly
no test coverage detected