MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / resolveStringArgDeviceCall

Function resolveStringArgDeviceCall

packages/simdeck-test/src/index.ts:253–266  ·  view source on GitHub ↗
(args: unknown[])

Source from the content-addressed store, hash-verified

251 udid: requireUdid(typeof args[0] === "string" ? args[0] : undefined),
252 });
253 const resolveStringArgDeviceCall = (args: unknown[]) => {
254 if (
255 args.length >= 2 &&
256 typeof args[0] === "string" &&
257 typeof args[1] === "string"
258 ) {
259 return { udid: args[0], value: args[1] as string, rest: args.slice(2) };
260 }
261 return {
262 udid: requireUdid(),
263 value: args[0] as string,
264 rest: args.slice(1),
265 };
266 };
267 const resolveObjectArgDeviceCall = <T>(args: unknown[]) => {
268 if (typeof args[0] === "string") {
269 return { udid: args[0], value: args[1] as T, rest: args.slice(2) };

Callers 1

createSessionFunction · 0.85

Calls 1

requireUdidFunction · 0.85

Tested by

no test coverage detected