Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add InterfaceDeclaration #77

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add InterfaceDeclaration #77

wants to merge 1 commit into from

Conversation

justinfagnani
Copy link
Collaborator

Fixes #76

InterfaceDeclaration is very similar to ClassDeclaration but doesn't imply a constructor and replaces superclass and mixins with supertypes.


members?: Array<ClassMember>;

source?: SourceReference;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fwiw I still dont know what a SourceReference really is or how its supposed to be documented

I think the PR for SourceReferences was merged by you and Alexander, I added some comments after merging (because I had missed the PR), but I still dont really know. Would be nice to have some clarification

@thepassle
Copy link
Collaborator

We're kind of entering murky waters here with the export for an interface:

     "exports": [
        {
+         "kind": "js",
          "name": "MyInterface",
          "declaration": {
            "name": "MyInterface",
            "module": "fixtures/-default/package/bar.js"
          }
        }
      ]

Do we think kind: 'js' is really correct here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add InterfaceDeclaration
2 participants