Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve SnapController constructor typing #2023

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

FrederikBolding
Copy link
Member

Improve SnapController constructor typing to improve compatibility with mobile. Most of the constructor arguments have sane defaults provided by the SnapController itself and are therefore allowed to be undefined. The feature flags are also allowed to be true, false and undefined.

These issues weren't caught until now because the extension integration is not typed.

@FrederikBolding FrederikBolding requested a review from a team as a code owner December 8, 2023 09:49
Copy link

codecov bot commented Dec 8, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f56ebf8) 96.08% compared to head (ca1faf0) 96.08%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2023   +/-   ##
=======================================
  Coverage   96.08%   96.08%           
=======================================
  Files         269      269           
  Lines        6261     6262    +1     
  Branches     1009     1010    +1     
=======================================
+ Hits         6016     6017    +1     
  Misses        245      245           

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

@FrederikBolding FrederikBolding merged commit 57d8a53 into main Dec 8, 2023
141 checks passed
@FrederikBolding FrederikBolding deleted the fb/improve-constructor-typing branch December 8, 2023 10:01
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