struct2ts icon indicating copy to clipboard operation
struct2ts copied to clipboard

Date to string type

Open whutchtwo opened this issue 6 years ago • 3 comments
trafficstars

Is there an option to convert stuct date to a string when generating typescript?

whutchtwo avatar Oct 10 '19 17:10 whutchtwo

Not at the moment, I have a plan for adding an option to force types but I've been busy recently.

If you wanna work on it, a PR is more than welcome, otherwise I'll eventually get to it.

OneOfOne avatar Oct 10 '19 17:10 OneOfOne

Just starting new job and using golang for the first time, but would love to try and tackle it if they give me the time. Your tool is great and got me 95% of the way there. For now I am running the output through sed to translate the Date to string.

whutchtwo avatar Oct 10 '19 17:10 whutchtwo

check my lib, it's done by default there https://github.com/zmitry/go2typings

zmitry avatar Oct 31 '19 23:10 zmitry