Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For public-facing APIs, I would strongly recommend writing the TypeScript interfaces in a separate file from any implementation, and using JSDoc comments. There are various documentation generators that can turn that into a web page, though personally as a user I tend to prefer to just look at the actual TS file.


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

Search: