From a547d8903b91908502892cc3ca68cb0986397901 Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Fri, 25 Sep 2026 19:54:18 -0700 Subject: [PATCH] chore(mobile): state why the notification stream frame cast is safe --- mobile/src/notifications/mobile-notifications.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/mobile/src/notifications/mobile-notifications.ts b/mobile/src/notifications/mobile-notifications.ts index 52840e63f88..f0572f928c8 100644 --- a/mobile/src/notifications/mobile-notifications.ts +++ b/mobile/src/notifications/mobile-notifications.ts @@ -15,6 +15,7 @@ export function subscribeToDesktopNotifications(client: RpcClient, hostId: strin const params = { includeDesktopSuppressed: true } // The transport releases the host registration with the id from the current `ready`. const unsubscribeStream = client.subscribe('notifications.subscribe', params, (data: unknown) => { + // oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: this stream emits only typed objects: `ready`, `end`, and the host's notification and dismiss events. const event = data as DismissNotificationEvent | { type: string } // No dispose-before-ready arm: every transport detaches this listener inside // `unsubscribeStream()`, so a callback that runs at all runs before disposal.