I am using @servicestack/client@1.0.14
I have the following C# DTO:
public class UserDto
{
public Guid? Id { get; set; }
public string DisplayName { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
}
The following Typescript DTO is generated using the 'typescript-ref ’ command:
export class UserDto
{
public id: string;
public displayName: string;
public firstName: string;
public lastName: string;
public email: string;
}
It ‘appears’ that my Typescript DTO properties are not made optional by default OR if I set ‘MakePropertiesOptional: True.’
Is there another setting I need to configure to ensure my DTO properties are made optional?
Additionally, certain built-in interfaces are in fact updated as expected. IHasSessionId => sessionId is updated based on the MakePropertiesOptional setting.
Thank you