( valueToRound: number, smallerUnitValue: number | undefined, threshold: number, )
| 126 | } |
| 127 | |
| 128 | function roundIntervalValue( |
| 129 | valueToRound: number, |
| 130 | smallerUnitValue: number | undefined, |
| 131 | threshold: number, |
| 132 | ) { |
| 133 | if (smallerUnitValue && smallerUnitValue >= threshold) { |
| 134 | return ++valueToRound; |
| 135 | } |
| 136 | return valueToRound; |
| 137 | } |
| 138 | |
| 139 | export function formatIntervalShort(interval: IPostgresInterval) { |
| 140 | if (interval.years) { |
no outgoing calls
no test coverage detected