Skip to content

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Dec 11, 2025

This allows to use the methods in more places, especially because when wrapped in e.g. Vue the signature of private fields will be changed. Meaning that a class instance within a ref will not have the same type due to its private fields.

But we do not need real instances here, instead just allow using the public interfaces as they contain the public API.
This also allows us to have custom classes that e.g. implement the IView but still we ensure that it satisfies our interface.

Using interfaces for API is not a breaking change, because it widens the function interface.

This allows to use the methods in more places, especially because when
wrapped in e.g. Vue the signature of private fields will be changed.
Meaning that a class instance within a `ref` will not have the same
type due to its private fields.

But we do not need real instances here, instead just allow using the
public interfaces as they contain the public API.
This also allows us to have custom classes that e.g. implement the
`IView` but still we ensure that it satisfies our interface.

Using interfaces for API is not a breaking change, because it widenes
the function interface.

Signed-off-by: Ferdinand Thiessen <[email protected]>
@susnux susnux added this to the v4.0.0 milestone Dec 11, 2025
@susnux susnux requested a review from skjnldsv December 11, 2025 17:28
@susnux susnux added 3. to review 3️⃣ Waiting for reviews type: refactor ♻️ Refactor code (not a bug fix, not a feature just refactoring) labels Dec 11, 2025
@codecov
Copy link

codecov bot commented Dec 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.72%. Comparing base (287421e) to head (43ec5ae).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1417      +/-   ##
==========================================
- Coverage   90.74%   90.72%   -0.02%     
==========================================
  Files          23       23              
  Lines         659      658       -1     
  Branches      175      175              
==========================================
- Hits          598      597       -1     
  Misses         50       50              
  Partials       11       11              

☔ 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.

@susnux susnux merged commit a362b02 into main Dec 11, 2025
11 checks passed
@susnux susnux deleted the feat/allow-to-register-view branch December 11, 2025 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review 3️⃣ Waiting for reviews type: refactor ♻️ Refactor code (not a bug fix, not a feature just refactoring)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants