Skip to content

[web_generator] IDL Gen should use JSAny? instead of JSVoid for void types nested as a type parameter #397

Open
@nikeokoronkwo

Description

@nikeokoronkwo

The dart:js_interop interfaces containing type parameters expect that the type parameters extend JSAny. However, JSVoid does not extend JSAny, as it is just a typedef for void.

When IDL code is generated, this causes types in WebIDL like Promise<void> to become JSPromise<JSVoid>, which is not correct.

We should rather generate JSPromise as is, without the void type parameter where possible.

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