(value: unknown)
| 138 | } |
| 139 | |
| 140 | export 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 | |
| 146 | export function isAppleOs(value: unknown): value is AppleOS { |
| 147 | // The stored Apple-OS discriminant carried additively on the PUBLIC device output |
no outgoing calls
no test coverage detected