11 ms·
JSDoc is for docs, TypeScript is a static type checker. How can these tools be used interchangeably?
by yard2010 2y ago
JSDoc is for docs, TypeScript is a static type checker. How can these tools be used interchangeably?
- styfle 2y agoYou can configure tsconfig.json to read JSDoc and error on invalid types so that you effectively get the same behavior as writing typescript.