MCPcopy Create free account
hub / github.com/callstack/agent-device / readRequiredInteger

Function readRequiredInteger

src/daemon/upload-http.ts:277–283  ·  view source on GitHub ↗
(record: Record<string, unknown>, key: string)

Source from the content-addressed store, hash-verified

275}
276
277function readRequiredInteger(record: Record<string, unknown>, key: string): number {
278 const value = record[key];
279 if (typeof value !== 'number' || !Number.isSafeInteger(value)) {
280 throw new AppError('INVALID_ARGS', `${key} must be an integer`);
281 }
282 return value;
283}
284
285function readRequiredArtifactType(record: Record<string, unknown>): 'file' | 'app-bundle' {
286 const value = readRequiredText(record, 'artifactType');

Callers 1

readUploadPreflightBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…