add fields to launch_debugger_frontend

Summary: Changelog: [Internal]

Reviewed By: robhogan

Differential Revision: D56610268

fbshipit-source-id: 37abee41dd068f3cafa19466b914545f6460a3f0
This commit is contained in:
Edmond Chui
2024-04-29 11:55:28 -07:00
committed by Facebook GitHub Bot
parent eb01a8f0c5
commit 820d1e1ff4
2 changed files with 8 additions and 1 deletions
@@ -153,6 +153,8 @@ export default function openDebuggerMiddleware({
status: 'success',
appId: appId ?? null,
deviceId: device ?? null,
resolvedTargetDescription: target.description,
prefersFuseboxFrontend: useFuseboxEntryPoint ?? false,
});
return;
} catch (e) {
@@ -36,7 +36,12 @@ export type ReportableEvent =
type: 'launch_debugger_frontend',
launchType: 'launch' | 'redirect',
...
| SuccessResult<{appId: string | null, deviceId: string | null}>
| SuccessResult<{
appId: string | null,
deviceId: string | null,
resolvedTargetDescription: string,
prefersFuseboxFrontend: boolean,
}>
| ErrorResult<mixed>
| CodedErrorResult<'NO_APPS_FOUND'>,
}