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

Are public const supported? #36

Open
fwd079 opened this issue Oct 11, 2019 · 0 comments
Open

Are public const supported? #36

fwd079 opened this issue Oct 11, 2019 · 0 comments

Comments

@fwd079
Copy link

fwd079 commented Oct 11, 2019

Hi
My class

name MyNamespace {
    public class MyClass
    {
        #region Constants.

        public const string DefaultLanguage= "English";

        public const string AllowedArea = "index.html"

        #endregion
   }
}

When run through the tool, comes out as:

declare module MyNamespace {
    // MyNamespace\MyClass.cs
    export interface MyClass{

    }
}

How to gain this output please:

namespace MyNamespace {
    // MyNamespace\MyClass.cs
    export class MyClass {
       public static DefaultLanguage: string = "English";
       public static AllowedArea: string = "index.html"
    }
}

Thank you for your help in this.

Kind Regards
Fawad

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