16 lines
346 B
TypeScript
16 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"
|