( device: Pick<DeviceInfo, 'platform' | 'appleOs'>, )
| 96 | * their leaf via `appleOs`; non-Apple platforms pass through unchanged. |
| 97 | */ |
| 98 | export function publicPlatformString( |
| 99 | device: Pick<DeviceInfo, 'platform' | 'appleOs'>, |
| 100 | ): PublicPlatform { |
| 101 | if (!isApplePlatform(device.platform)) return device.platform; |
| 102 | return isMacOs(device) ? 'macos' : 'ios'; |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * The inverse of {@link publicPlatformString}: reconstruct the internal `platform` (+ |
no test coverage detected