Skip to content

IDL Gen: Support Namespaces #398

Open
@nikeokoronkwo

Description

@nikeokoronkwo

This issue is to add support in the (new) IDL generator for WebIDL namespaces.

Currently, namespaces are generated as getters on a type with properties and methods as shown:

@JS()
external $MyNamespace get MyNamespace

extension type $MyNamespace._(JSObject _) implements JSObject {
  // namespace code...
}

With the refactor, namespace generation will behave more like how it will be in the TS Declaration generator, which will include just having the extension type, and making properties and methods static on the namespace.

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