From 071325de4dee666a09e305399ea95e163c5d8de4 Mon Sep 17 00:00:00 2001 From: rahim Date: Wed, 8 Apr 2026 00:39:28 -0700 Subject: [PATCH] fix(utils): stable sort comparator and orphaned JSDoc (#1286) --- packages/spf/src/core/types/index.ts | 6 ------ packages/utils/src/dom/text-track.ts | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/spf/src/core/types/index.ts b/packages/spf/src/core/types/index.ts index bf7b14a5..23c48011 100644 --- a/packages/spf/src/core/types/index.ts +++ b/packages/spf/src/core/types/index.ts @@ -180,9 +180,6 @@ export type TextTrack = Track & { */ export type PartiallyResolvedTextTrack = PartiallyResolved; -/** - * Unresolved text track (alias for backwards compatibility). - /** * Union of all resolved track types. */ @@ -196,9 +193,6 @@ export type PartiallyResolvedTrack = | PartiallyResolvedAudioTrack | PartiallyResolvedTextTrack; -/** - * Union of all unresolved track types (alias for backwards compatibility). - // ============================================================================= // Switching and Selection Sets // ============================================================================= diff --git a/packages/utils/src/dom/text-track.ts b/packages/utils/src/dom/text-track.ts index ed61adbc..521ba9be 100644 --- a/packages/utils/src/dom/text-track.ts +++ b/packages/utils/src/dom/text-track.ts @@ -12,5 +12,5 @@ export function getTextTrackList(media: HTMLMediaElement, filterPred: (textTrack } function sortByTextTrackKind(a: TextTrack, b: TextTrack): number { - return a.kind >= b.kind ? 1 : -1; + return a.kind > b.kind ? 1 : a.kind < b.kind ? -1 : 0; }