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

Function isCount

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

Source from the content-addressed store, hash-verified

152 typeof value === 'string' && value.length > 0;
153
154const isCount = (value: unknown): value is number =>
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;

Callers 2

isHourFunction · 0.70
toPatchyConfigFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected