( flags: CliFlags, previous: RemoteConnectionState | null, now: string, )
| 240 | } |
| 241 | |
| 242 | function buildConnectionRuntimeBinding( |
| 243 | flags: CliFlags, |
| 244 | previous: RemoteConnectionState | null, |
| 245 | now: string, |
| 246 | ): Pick<RemoteConnectionState, 'connectedAt' | 'metro' | 'platform' | 'runtime' | 'target'> { |
| 247 | return { |
| 248 | platform: flags.platform ?? previous?.platform, |
| 249 | target: flags.target ?? previous?.target, |
| 250 | runtime: previous?.runtime, |
| 251 | metro: previous?.metro, |
| 252 | connectedAt: previous?.connectedAt ?? now, |
| 253 | }; |
| 254 | } |
| 255 | |
| 256 | function shouldReusePreviousConnectionState( |
| 257 | flags: CliFlags, |
no outgoing calls
no test coverage detected