MCPcopy Index your code
hub / github.com/callstack/agent-device / readIntParam

Function readIntParam

src/daemon/server/http-server.ts:184–187  ·  view source on GitHub ↗
(params: Record<string, unknown>, key: string)

Source from the content-addressed store, hash-verified

182}
183
184function readIntParam(params: Record<string, unknown>, key: string): number | undefined {
185 const value = params[key];
186 return Number.isInteger(value) ? Number(value) : undefined;
187}
188
189function readBooleanParam(params: Record<string, unknown>, key: string): boolean | undefined {
190 const value = params[key];

Callers 2

toLeaseDaemonRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected