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

Function actionPath

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

Source from the content-addressed store, hash-verified

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);
239 const requestActionOk = (udid: string, body: unknown) =>

Callers 1

requestActionFunction · 0.85

Calls 1

simulatorPathFunction · 0.85

Tested by

no test coverage detected