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

Can't extend interface in module #32

Open
jon49 opened this issue Jul 28, 2015 · 0 comments
Open

Can't extend interface in module #32

jon49 opened this issue Jul 28, 2015 · 0 comments

Comments

@jon49
Copy link
Contributor

jon49 commented Jul 28, 2015

declare module A {
    interface B {
        a: string
        b: number
    }
}

interface C extends A.B {}

Results in

{
  "A.B": {
    "id": "A.B",
    "type": "object",
    "properties": {
      "a": {
        "type": "string"
      },
      "b": {
        "type": "number"
      }
    },
    "required": [
      "a",
      "b"
    ],
    "additionalProperties": false
  },
  "C": {
    "id": "C",
    "type": "object",
    "properties": {},
    "additionalProperties": false
  }
}

As you can see, C has no properties when it should inherit A.B.

@jon49 jon49 mentioned this issue Aug 13, 2015
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 a pull request may close this issue.

1 participant