MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / isPositiveInt

Function isPositiveInt

src/workspaces/protocol.ts:117–119  ·  view source on GitHub ↗
(x: unknown)

Source from the content-addressed store, hash-verified

115}
116
117function isPositiveInt(x: unknown): x is number {
118 return typeof x === 'number' && Number.isFinite(x) && x > 0;
119}
120
121function isNonNegativeInt(x: unknown): x is number {
122 return typeof x === 'number' && Number.isFinite(x) && x >= 0;

Callers 1

isClientControlMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected