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

Function simulatorPath

packages/simdeck-test/src/index.ts:234–235  ·  view source on GitHub ↗
(udid: string, suffix: string)

Source from the content-addressed store, hash-verified

232 const endpoint = result.url;
233 const createSession = (defaultUdid?: string): SimDeckSession => {
234 const simulatorPath = (udid: string, suffix: string) =>
235 `/api/simulators/${encodeURIComponent(udid)}${suffix}`;
236 const actionPath = (udid: string) => simulatorPath(udid, "/action");
237 const requestAction = <T = unknown>(udid: string, body: unknown) =>
238 requestJson<T>(endpoint, "POST", actionPath(udid), body);

Callers 2

actionPathFunction · 0.85
createSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected