TypeScript/tests/cases/conformance/jsdoc/typedefTagExtraneousProperty.ts

16 lines
346 B
TypeScript
Raw Normal View History

// @lib: es5
// @allowjs: true
// @checkjs: true
// @noemit: true
// @Filename: typedefTagExtraneousProperty.js
/** @typedef {Object.<string,string>} Mmap
* @property {string} ignoreMe - should be ignored
*/
/** @type {Mmap} */
var y = { bye: "no" };
y
y.ignoreMe = "ok but just because of the index signature"
y['hi'] = "yes"