0

I want to create custom type in order to for example code completion, in separated file named custom-types.js, in way I found in Rzslider angular repository, in file Rzslider.js file at the bottom:

/**
 *
 * @name Author
 * @property {number} id
 * @property {string} name
 * @property {string} surname
 */

Is this the proper way to document own types? It's important that it should be in separated file, to pollute code as little as possible with JSDoc comments. I am using JSDoc 3 with plugin bounded to Intellij 14, thank you in advance for helping me.

Radek Anuszewski
  • 1,620
  • 6
  • 28
  • 56
  • 1
    About documenting angular codes with jsdoc, I have answered a similar question [here](http://stackoverflow.com/a/24208836/2197555). – gm2008 Jun 07 '16 at 10:53
  • @gm2008 Thanks, could you place your answer as regular post? Then I can accept it. – Radek Anuszewski Jun 15 '16 at 18:04
  • About documenting angular codes with jsdoc, I have answered a similar question. Please refer to it [here](https://stackoverflow.com/a/24208836/2197555). – gm2008 Jun 16 '16 at 09:36
  • This should be a comment, not an answer. If it is a duplicate question, [vote to close](http://stackoverflow.com/help/privileges/close-questions) as such and/or leave a comment. – Tunaki Jun 16 '16 at 10:48

0 Answers0