style: format youtube runtime files

This commit is contained in:
2026-05-24 19:10:58 -07:00
parent d6ff50455a
commit e9abbd5f05
3 changed files with 10 additions and 9 deletions
@@ -111,7 +111,10 @@ export function createYoutubePrimarySubtitleNotificationRuntime(deps: {
delayMs: number,
) => YoutubePrimarySubtitleNotificationTimer;
clearSchedule: (timer: YoutubePrimarySubtitleNotificationTimer | null) => void;
getCurrentSubtitleState?: () => CurrentSubtitleState | null | Promise<CurrentSubtitleState | null>;
getCurrentSubtitleState?: () =>
| CurrentSubtitleState
| null
| Promise<CurrentSubtitleState | null>;
delayMs?: number;
}) {
const delayMs = deps.delayMs ?? 5000;
@@ -128,9 +131,7 @@ export function createYoutubePrimarySubtitleNotificationRuntime(deps: {
pendingTimer = null;
};
const refreshCurrentSubtitleState = async (
preferredLanguages: Set<string>,
): Promise<boolean> => {
const refreshCurrentSubtitleState = async (preferredLanguages: Set<string>): Promise<boolean> => {
const getCurrentSubtitleState = deps.getCurrentSubtitleState;
if (!getCurrentSubtitleState) {
return false;