JSDoc - is a markup language used to annotate JavaScript source code files.
TypeScript - is a programming language.
Benefits of JSDoc:
- Do not affect JavaScript syntax.
- No compilation required.
- As a result, they can be added at any time to any part of the code without additional changes.
JSDoc allows you to add static typing of the code while staying with JavaScript.
Google - JS Styleguide - JSDoc
eslint - require-jsdoc
Type Safe JavaScript and TypeScript with JSDoc
Back to Code Guide - JavaScript
Copyright © 2017 Stanislav Kochenkov