(duration: Duration)
| 56 | } |
| 57 | |
| 58 | function negateDuration(duration: Duration): Duration { |
| 59 | return new Duration( |
| 60 | -duration.years, |
| 61 | -duration.months, |
| 62 | -duration.weeks, |
| 63 | -duration.days, |
| 64 | -duration.hours, |
| 65 | -duration.minutes, |
| 66 | -duration.seconds, |
| 67 | -duration.milliseconds, |
| 68 | ) |
| 69 | } |
| 70 | |
| 71 | function getExplicitThreshold(el: RelativeTimeElement): string | null { |
| 72 | const threshold = el.getAttribute('threshold') |
no outgoing calls
no test coverage detected
searching dependent graphs…