Hacker News new | past | comments | ask | show | jobs | submit login

I actually started by writing it in TS and later moved to just a TS declaration file and a raw JS source. This means it can be used smoothly in both environments (similar to using a definitelytyped resource).



What made you go back to plain javascript?


For an ambitious project this is probably still a better approach. But did you try using the --declaration switch?




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: