MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / resolveOptionalObjectDeviceCall

Function resolveOptionalObjectDeviceCall

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

Source from the content-addressed store, hash-verified

271 return { udid: requireUdid(), value: args[0] as T, rest: args.slice(1) };
272 };
273 const resolveOptionalObjectDeviceCall = <T>(args: unknown[]) => {
274 if (typeof args[0] === "string") {
275 return { udid: args[0], options: args[1] as T | undefined };
276 }
277 return { udid: requireUdid(), options: args[0] as T | undefined };
278 };
279 const session: SimDeckSession = {
280 endpoint,
281 pid: result.pid,

Callers 1

createSessionFunction · 0.85

Calls 1

requireUdidFunction · 0.85

Tested by

no test coverage detected