Upgrading the NPM dependency to v5.9.3 results in a few failures spots:
parameters seems to be sometimes null:
|
external TSNodeArray<TSParameterDeclaration> get parameters; |
.
|
final parameters = funType.parameters.toDart |
throws because of that.
members also seems to be sometimes null:
|
external TSNodeArray<T> get members; |
.
|
for (final member in typeDecl.members.toDart) { |
throws because of that.
There are likely other failure spots after getting past those issues.
The first is fixable, but in the second, the type decl seems to point to a function rather than an interface, so it's not obvious what the solution is there. It's also not clear under what situations we should expect a non-nullable vs a nullable. For now, I'll pin the dependency to the current version, v5.8.3.
cc @nikeokoronkwo
Upgrading the NPM dependency to v5.9.3 results in a few failures spots:
parametersseems to be sometimes null:web/web_generator/lib/src/js/typescript.types.dart
Line 457 in 552acc1
web/web_generator/lib/src/interop_gen/transform/transformer.dart
Line 1523 in 552acc1
membersalso seems to be sometimesnull:web/web_generator/lib/src/js/typescript.types.dart
Line 484 in 552acc1
web/web_generator/lib/src/interop_gen/transform/transformer.dart
Line 498 in 552acc1
There are likely other failure spots after getting past those issues.
The first is fixable, but in the second, the type decl seems to point to a function rather than an interface, so it's not obvious what the solution is there. It's also not clear under what situations we should expect a non-nullable vs a nullable. For now, I'll pin the dependency to the current version, v5.8.3.
cc @nikeokoronkwo