Closed devoncarew closed 1 year ago
Ah, it looks like this repo was using the typedefs we had for JS types (which have since been reified for a while now). So the JS types are statically separate types now, which is why you see all these errors.
We've started allowing external signatures to have Dart primitives on all backends (so num
(and subtypes), bool
, String
are ok), so you can replace your external
definitions in node/
with parameters that accept String
. If for whatever reason you want to maintain JSString
, you can also do .toJS
and .toDart
to go back and forth.
The non-String
related errors that I can see are:
.toJS
on the list to pass it to JSArray
. You should also jsify
(via dart:js_util
) the Map
(and label it JSObject
) instead of passing a Map
directly.Object
errors
String
s/JSString
s, they might just need a cast once you replace all external
s with String
.Let me know if you have any questions, thanks!
Thanks! I was able to address the analysis issues. I'm now seeing some compilation issues:
https://github.com/dart-lang/setup-dart/pull/97
Do you mind taking a look to see if something jumps out for you? From the error messages - Inline class member is marked 'external', but the representation type of its inline class is not a valid JS interop type
- it's not immediately clear what's going wrong.
Hi - it looks like we need to update to a newer version of JS interop here. @srujzs - can you advise what the changes should be? I assume this would be mostly mechanical; if you can give pointers to one or two of the issues below I can extrapolate for the rest. Thanks!
For Dart
3.1.0-294.0.dev
: