3 ms·
> It adds in developer overhead and for someone writing in JS that is often what you are trying to minimize. Typescript compiler supports (some) JS DOC https:
by throw_m239339 6y ago
> It adds in developer overhead and for someone writing in JS that is often what you are trying to minimize.
Typescript compiler supports (some) JS DOC
https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html https://www.typescriptlang.org/docs/handbook/jsdoc-supported...
So you can use the compiler as a static analysis tool without buying into the language itself completely, which I do and just stick type definitions to comments when needed.