MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / isHourIntervalEnabledByRange

Function isHourIntervalEnabledByRange

packages/constants/index.ts:287–295  ·  view source on GitHub ↗
(range: keyof typeof timeWindows)

Source from the content-addressed store, hash-verified

285}
286
287export function isHourIntervalEnabledByRange(range: keyof typeof timeWindows) {
288 return (
289 isMinuteIntervalEnabledByRange(range) ||
290 range === 'today' ||
291 range === 'yesterday' ||
292 range === 'last24h' ||
293 range === '7d'
294 );
295}
296
297export function getDefaultIntervalByRange(
298 range: keyof typeof timeWindows

Callers 2

ReportIntervalFunction · 0.90
reportSlice.tsFile · 0.90

Calls 1

Tested by

no test coverage detected