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

Inheritance not working #36

Open
StefanKern opened this issue Oct 13, 2017 · 2 comments
Open

Inheritance not working #36

StefanKern opened this issue Oct 13, 2017 · 2 comments

Comments

@StefanKern
Copy link

StefanKern commented Oct 13, 2017

Installed product versions

  • Visual Studio: [example 2017 Professional]
  • This extension: [example 1.1.21]

Description

Replace this text with a short description
Generating a model with an inheritance doesn't work

Steps to recreate

public class Foo {
  public string FooProp { get; set; }
}
public class Bar : Foo{
  public string BarProp { get; set; }
}

Generate .d.ts files for both classes

Current behavior

Bar.d.ts is created as

declare module server {
	interface bar extends Foo {
		barProp: string;
	}
}

(Foo is not recogniced!)

Expected behavior

Bar.d.ts is created correct

declare module server {
	interface bar extends server.foo {
		barProp: string;
	}
}
@denis-peshkov
Copy link

Hey @StefanKern, try this one https://github.com/denis-peshkov/TypeScriptDefinitionGenerator, I fixed this issue a long time ago.

@Wonovan
Copy link

Wonovan commented Sep 2, 2020

Definitely a need in VS 2019.

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

No branches or pull requests

3 participants