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

Function isHour

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

Source from the content-addressed store, hash-verified

155 typeof value === 'number' && Number.isFinite(value) && value >= 0;
156
157const isHour = (value: unknown): value is number =>
158 isCount(value) && Number.isInteger(value) && value <= 23;
159
160const toWindow = (
161 window: Partial<PatchyHourWindow> | undefined,

Callers 1

toWindowFunction · 0.85

Calls 1

isCountFunction · 0.70

Tested by

no test coverage detected