CSharpToTypeScript icon indicating copy to clipboard operation
CSharpToTypeScript copied to clipboard

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

Open douglasg14b opened this issue 2 years ago • 0 comments

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;
}

douglasg14b avatar Dec 22 '22 21:12 douglasg14b