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

Function isCount

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 === 'string' && value.length > 0;
189
190const isCount = (value: unknown): value is number =>
191 typeof value === 'number' && Number.isFinite(value) && value >= 0;
192
193const isHour = (value: unknown): value is number =>
194 isCount(value) && Number.isInteger(value) && value <= 23;

Callers 2

isHourFunction · 0.70
toPatchyConfigFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected