( client: Parameters<ClientCommandHandler>[0]['client'], stateDir: string, flags: CliFlags, previous: RemoteConnectionState | null, )
| 261 | } |
| 262 | |
| 263 | async function cleanupForcedPreviousConnection( |
| 264 | client: Parameters<ClientCommandHandler>[0]['client'], |
| 265 | stateDir: string, |
| 266 | flags: CliFlags, |
| 267 | previous: RemoteConnectionState | null, |
| 268 | ): Promise<void> { |
| 269 | if (!previous || !flags.force) return; |
| 270 | await stopMetroCleanup(previous.metro); |
| 271 | await stopReactDevtoolsCleanup({ stateDir, state: previous }); |
| 272 | await releasePreviousLease(client, previous); |
| 273 | } |
| 274 | |
| 275 | function resolveRemoteConnectFlags(flags: CliFlags): { |
| 276 | flags: CliFlags; |
no test coverage detected