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

refactor(all): migrate to package:web #75

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ahmednfwela
Copy link

No description provided.

@GZGavinZhao GZGavinZhao added the enhancement New feature or request label Jun 14, 2024
@GZGavinZhao
Copy link

Current blockers, working on them one by one:

  • JSTestability needs to be migrated to staticInterop and extension types. (Mostly done, tests need to be updated)
  • Don't use tear-offs for extension methods. Not difficult to do, just annoying because we use them all over the place in tests for convenience.
  • Functions that are wrapped with toJS need to have more explicit types that follow the interop rules. This is actually a good thing because we'll then have stricter type guarantees.
  • It seems like ElementRef needs to be eliminated. (this may warrant its own issue?)

@@ -88,7 +91,7 @@ class _KeyEventsHandler {

element.addEventListener(
parsed.domEventName,
(event) {
(Event event) {
if (event is KeyboardEvent && parsed.matches(event)) {
Copy link

Choose a reason for hiding this comment

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

Should be event.isA<KeyboardEvent>().

Choose a reason for hiding this comment

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

isA() requires to bump SDK to 3.4.0

@GZGavinZhao GZGavinZhao changed the title feat: migrate to package:web refactor(all): migrate to package:web Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants