Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
yard2010
· 2y ago · 0 comments
JSDoc is for docs, TypeScript is a static type checker. How can these tools be used interchangeably?
Comments
[–]
styfle
2y ago
You can configure tsconfig.json to read JSDoc and error on invalid types so that you effectively get the same behavior as writing typescript.