Y
Hacker News
new
|
ask
|
show
|
jobs
by
chatmasta
841 days ago
The docs have a page [0] addressing this question. The tl;dr is because grats uses the TypeScript compiler to parse an AST, and the compiler already recognizes docblocks and attaches them to AST nodes.
[0]
https://grats.capt.dev/docs/faq/why-use-comments