MCPcopy Create free account
hub / github.com/dailydotdev/apps / isHour

Function isHour

packages/shared/src/features/patchy/patchyConfig.ts:190–191  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

188 typeof value === 'number' && Number.isFinite(value) && value >= 0;
189
190const isHour = (value: unknown): value is number =>
191 isCount(value) && Number.isInteger(value) && value <= 23;
192
193const toWindow = (
194 window: Partial<PatchyHourWindow> | undefined,

Callers 1

toWindowFunction · 0.85

Calls 1

isCountFunction · 0.70

Tested by

no test coverage detected