I want to have a nice documentation and that is why I want to write:
@param {(device)} device
and when I click on parameter device I want to see something like:
configInSync:null
lastUpgradeStatus:"none"
lastUpgradeStatusReported:true
modelID:"F4FE7EBE"
packages:Object {}
registrationInSync:false
softwareVersion:3
UUID:"85196BFA6E90"
So I want to define my own type, is it possible? Of course I was trying with
@typedef
But how to create such "defice" type? I was tried:
@typedef {configInSync:null
lastUpgradeStatus:"none"
lastUpgradeStatusReported:true
modelID:"F4FE7EBE"
packages:Object {}
registrationInSync:false
softwareVersion:3
UUID:"85196BFA6E90"} device
Solution: It is needed to define every property in the type, like:
/**
* @typedef {object} MessageProperties
* @property {string} replyTo
* @property {string} type
* @property {string} messageId
* @property {string} contentType
* @property {string} correlationId
* @property {number} expiration
* @property {object} headers
*/