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

Namespace for class within a class #42

Open
warlock00 opened this issue Feb 15, 2019 · 1 comment
Open

Namespace for class within a class #42

warlock00 opened this issue Feb 15, 2019 · 1 comment

Comments

@warlock00
Copy link

Installed product versions

  • Visual Studio: 2017 Professional
  • Extension: snys98/TypeScriptDefinitionGenerator 2.2.0.97

Description

Class within a class has wrong namespace. Causing me lots of conflicts.

Steps to recreate

Try generate the following:

namespace Company.Areas.Blah.Dtc
{
    public class SomeDtc
    {
        public int? PageNumber { get; set; }
        public IList<Row> Rows { get; set; }
        
        public class Row

Results in:

declare module Company.Areas.Blah.Dtc {
	interface Row {

Current behavior

Ends up with a Row in the wrong namespace that can conflict with other Dtcs that also have a scoped class of Row.

Expected behavior

declare module Company.Areas.Blah.Dtc.SomeDtc {
	interface Row {

@warlock00
Copy link
Author

There's quite a few versions.
I meant to log this issue to:
https://github.com/denis-peshkov/TypeScriptDefinitionGenerator/

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

1 participant