(platform: PublicPlatform)
| 109 | * leaves `appleOs` unset so the target-based inference still distinguishes tvOS. |
| 110 | */ |
| 111 | export function deviceFieldsFromPublicPlatform(platform: PublicPlatform): { |
| 112 | platform: Platform; |
| 113 | appleOs?: AppleOS; |
| 114 | } { |
| 115 | if (platform === 'macos') return { platform: 'apple', appleOs: 'macos' }; |
| 116 | if (platform === 'ios') return { platform: 'apple' }; |
| 117 | return { platform }; |
| 118 | } |
| 119 | |
| 120 | /** |
| 121 | * The tvOS Apple-OS leaf predicate. tvOS is modeled as the `ios` platform with a |
no outgoing calls
no test coverage detected