-
Notifications
You must be signed in to change notification settings - Fork 38
[interop] Resolved Namespace typedef
and exception improvements
#459
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
[interop] Resolved Namespace typedef
and exception improvements
#459
Conversation
- improved exception for not finding type - resolved def if cannot find file in path/module (i.e maybe a module already resolved by ts/node)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd add a test for this as well when you're ready.
Ready now. |
name: name, | ||
dartName: dartName, | ||
id: id, | ||
exported: isExported, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, we may have talked about this before but this is for supporting properties that aren't strictly identifiers in JS interop: https://dart-review.googlesource.com/c/sdk/+/447964. This would allow things like @JS('foo-bar')
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Affirmative, although this may not help/work with symbol indexing. Would this work for number indexes as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to reference the issue: dart-lang/sdk#61413
I think we still need a test for a typedef in a namespace unless that was the test expectation that got updated? |
Revisions updated by `dart tools/rev_sdk_deps.dart`. ecosystem (https://github.com/dart-lang/ecosystem/compare/d6370fb..36e514d): 36e514d 2025-09-02 dependabot[bot] Bump the github-actions group with 4 updates (dart-lang/ecosystem#368) 7c783fa 2025-09-02 Devon Carew update to the latest analyzer (dart-lang/ecosystem#369) web (https://github.com/dart-lang/web/compare/bdab462..a152054): a152054 2025-09-03 Nikechukwu [interop] Resolved Namespace `typedef` and exception improvements (dart-lang/web#459) webdev (https://github.com/dart-lang/webdev/compare/bf7b1e5..52ad019): 52ad0191 2025-09-03 jensjoha Fix failing test ('NoSuchAlertException (27): no such alert') after `#2681` (dart-lang/webdev#2683) Change-Id: Ib708d6855f0aa2b6502137526f798a3780fa3048 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/448420 Reviewed-by: Nate Bosch <[email protected]> Commit-Queue: Devon Carew <[email protected]>
This PR makes a couple of fixes to the web-generator, as well as some minor additions to previous features
typedef
in namespaces