TypeScriptBuilder icon indicating copy to clipboard operation
TypeScriptBuilder copied to clipboard

Support nullable members should be optional

Open enkelmedia opened this issue 5 years ago • 1 comments

TypeScript has something called "Optional Members":

export interface Poco {
name: string;
birthdate? : Date; // Optional
}

If my poco has a nullable member

public class Poco {
   public string Name {get;set;}
   public DateTime? Birthdate {get;set}
}

The current implementation would not make the nullable member optional.

enkelmedia avatar Jan 08 '21 11:01 enkelmedia

PR: https://github.com/pankleks/TypeScriptBuilder/pull/29

enkelmedia avatar Jan 08 '21 11:01 enkelmedia