Skip to content

Interface with variable members is allowed #194

Closed

Description

@rix0rrr

jsii does not reject the following interface definition:

export interface Thingamajig {
    [key: string]: string
}

But what it generates for it is an empty interface, which is not correct:

    "@scope/lib.Thingamajig": {
      "assembly": "@scope/lib",
      "fqn": "@scope/lib.Thingamajig",
      "kind": "interface",
      "name": "Thingamajig"
    },

It should either reject this definition, or generate something sensible.

Activity

  1. added
    feature-request
    on Nov 18, 2019
  2. added
    bug
    still-relevant?
    and removed
    feature-request
    on Dec 19, 2019
  3. added and removed
    still-relevant?
    on Jan 7, 2020
  4. added
    effort/medium
    on Aug 11, 2020
  5. removed their assignment
    on Jun 24, 2021
  6. github-actions commented on Jun 25, 2023

    @github-actions
    Contributor

    This issue has not received any attention in 2 years. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

  7. added
    closing-soon
    and removed
    closing-soon
    on Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugclosed-for-stalenesseffort/mediump2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions