jsDoc Typing

  • @ts-check - first line of file
  • @ts-ignore - ignore next line error
  • @ts-expect-error - same with ignore but throw compiler error
  • @param - what this do
  • @type - type
    • @typedef - new type
    • @template - generic
    • @class - constructor function type intead of @constructor
    • @augments - extends manually for generic like instead of @extends
     
     
     

    Constructor Generic Extends

    Type casting supported

     
     

    Recommendations