struct2ts
struct2ts copied to clipboard
Date to string type
Is there an option to convert stuct date to a string when generating typescript?
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.
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.
check my lib, it's done by default there https://github.com/zmitry/go2typings