AdrianWilczynski / CSharpToTypeScript

Convert C# Models, ViewModels and DTOs into their TypeScript equivalents using webapps, CLI Tool or VSCode extension. Links: https://marketplace.visualstudio.com/items?itemName=adrianwilczynski.csharp-to-typescript - https://csharptotypescript.azurewebsites.net - https://adrianwilczynski.github.io/CSharpToTypeScript/ - https://www.nuget.org/packages/CSharpToTypeScript.CLITool/
MIT License
115 stars 32 forks source link

Does not work when "required" keyword is used in property declarations in class #58

Open douglasg14b opened 1 year ago

douglasg14b commented 1 year ago

Example:

    public class ExchangeOverflowCompletedResponse
    {
        public required long OverflowId { get; set; }
        public required Resource Resource { get; set; }
        public required double Quantity { get; set; }
        public required double Fee { get; set; }
    }

Converts to:

export interface ExchangeOverflowCompletedResponse {
    resource: required;
}