nhabuiduc / TypescriptSyntaxPaste

Visual Studio Extension which convert C# SYNTAX to Typescript SYNTAX
70 stars 24 forks source link

Adding ? to property #8

Closed denimaaark closed 8 years ago

denimaaark commented 8 years ago

Please can You add ? to property on paste ?

var CustomerId: number -> CustomerId?: number !

Problem is that if You tray to use properties from interface they are undefined, and if we want to define them we apways muset define them in constructor, for classes that has 50 propertyes this is problem.

Thank You

nhabuiduc commented 8 years ago

Added in commit d873e4e9effb63fa3748987395fd9ba85df36a51 , which provide an option to convert with ? as optional properties/methods in interface

denimaaark commented 8 years ago

Great, thank You, this is very useful for spa typescript development :-)