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

Function isPublicPlatform

src/kernel/device.ts:140–144  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

138}
139
140export function isPublicPlatform(value: unknown): value is PublicPlatform {
141 // The PUBLIC leaf strings a daemon response carries (approach b). Used by the client
142 // normalizers, which parse leaf platforms (`ios`/`macos`), not the internal `apple`.
143 return (PUBLIC_PLATFORMS as readonly unknown[]).includes(value);
144}
145
146export function isAppleOs(value: unknown): value is AppleOS {
147 // The stored Apple-OS discriminant carried additively on the PUBLIC device output

Callers 1

normalizeOpenDeviceFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected