1bbcb5553a
Previously the jsdoc index signature syntax was incorrectly treated the same as Object: ```js /** @typedef {Object} AllowsNesting * @property ... */ /** @typedef {Object.<string,string>} IncorrectlyAllowsNesting */ ``` Fixes #34911
15 lines
346 B
TypeScript
15 lines
346 B
TypeScript
// @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"
|