Skip to content

Interface with variable members is allowed #194

@rix0rrr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions