Skip to content

Update typescript dependency to v5.9.3 results in test failures in interop_gen_test.dart #494

@srujzs

Description

@srujzs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions