Skip to content

Conversation

ronalduQualabs
Copy link
Contributor

This PR addresses several of the type errors surfaced when enabling TypeScript's strict configuration, moving the project closer to full strict compliance.

There are still a number of type violations remaining.

Copy link

vercel bot commented Aug 14, 2025

@ronalduQualabs is attempting to deploy a commit to the Mux Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

codecov bot commented Aug 14, 2025

Codecov Report

❌ Patch coverage is 61.85897% with 119 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.28%. Comparing base (3ea80df) to head (0febd4d).
⚠️ Report is 223 commits behind head on main.

Files with missing lines Patch % Lines
src/js/utils/element-utils.ts 54.28% 32 Missing ⚠️
src/js/media-store/media-store.ts 66.12% 21 Missing ⚠️
src/js/media-time-range.ts 45.71% 19 Missing ⚠️
src/js/media-seek-forward-button.ts 9.09% 10 Missing ⚠️
src/js/media-preview-thumbnail.ts 46.66% 8 Missing ⚠️
src/js/media-seek-backward-button.ts 25.00% 6 Missing ⚠️
src/js/utils/utils.ts 14.28% 6 Missing ⚠️
src/js/media-theme-element.ts 75.00% 4 Missing ⚠️
src/js/media-store/util.ts 78.57% 3 Missing ⚠️
src/js/media-tooltip.ts 25.00% 3 Missing ⚠️
... and 4 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1183      +/-   ##
==========================================
- Coverage   78.55%   75.28%   -3.28%     
==========================================
  Files          59       54       -5     
  Lines       11080    13132    +2052     
  Branches        0      765     +765     
==========================================
+ Hits         8704     9886    +1182     
- Misses       2376     3216     +840     
- Partials        0       30      +30     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment on lines +47 to +49
const controller = getMediaController(this);
if (!controller) return null;
return controller.querySelector('media-settings-menu') as HTMLElement | null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for this, could be done as in the media-rendition-menu-button

Comment on lines 1 to 2
import { MediaUIAttributes } from './constants.js';
import { MediaStateReceiverAttributes } from './constants.js';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import { MediaUIAttributes } from './constants.js';
import { MediaStateReceiverAttributes } from './constants.js';
import {
MediaUIAttributes,
MediaStateReceiverAttributes,
} from './constants.js';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants