MCPcopy Index your code
hub / github.com/callstack/agent-device / normalizePlatform

Function normalizePlatform

src/daemon/handlers/install-source.ts:52–54  ·  view source on GitHub ↗
(platform: CommandFlags['platform'])

Source from the content-addressed store, hash-verified

50};
51
52function normalizePlatform(platform: CommandFlags['platform']): 'ios' | 'android' | undefined {
53 return platform === 'ios' || platform === 'android' ? platform : undefined;
54}
55
56function resolveRetainMaterializedPaths(req: DaemonRequest): { enabled: boolean; ttlMs?: number } {
57 const enabled = req.meta?.retainMaterializedPaths === true;

Callers 1

resolveInstallDeviceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected