MCPcopy
hub / github.com/callstack/agent-device / parseTimeout

Function parseTimeout

src/utils/finders.ts:162–166  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

160}
161
162function parseTimeout(value: string | undefined): number | null {
163 if (!value) return null;
164 const parsed = Number(value);
165 return Number.isFinite(parsed) ? parsed : null;
166}

Callers 5

parseWaitPositionalsFunction · 0.90
handleAlertCommandFunction · 0.90
waitForNativeAlertFunction · 0.90
snapshot.test.tsFile · 0.90
parseFindArgsFunction · 0.70

Calls 1

isFiniteMethod · 0.80

Tested by

no test coverage detected