fix(utils): stable sort comparator and orphaned JSDoc (#1286)

This commit is contained in:
rahim
2026-04-08 17:39:28 +10:00
committed by GitHub
parent 42abf88095
commit 071325de4d
2 changed files with 1 additions and 7 deletions
-6
View File
@@ -180,9 +180,6 @@ export type TextTrack = Track & {
*/
export type PartiallyResolvedTextTrack = PartiallyResolved<TextTrack>;
/**
* 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
// =============================================================================
+1 -1
View File
@@ -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;
}