/**
* @typedef {object} User
* @property {number} id
* @property {string} name
*/
/**@type {User} */
let user
user.phoneNo = '123456' // Should give an Error
if not with jsDoc itself, is there any plugin that can achieve this
I know it can be achieved with ts easily
adding un-defined properties(jsDoc) to object should return an error