3e3df8702c
THe code to bind `@enum` and `@typedef` didn't handle the case that the `@enum` was on a property assignment to an alias of module.exports. Specifically, `x` needs to be correctly aliased to the file's symbol in the example below: ``` var x = module.exports = {}; /** @enum {string} */ x.E = { A: "A" }; ```
10 lines
173 B
TypeScript
10 lines
173 B
TypeScript
// @noemit: true
|
|
// @allowjs: true
|
|
// @filename: exportedAliasedEnumTag.js
|
|
var middlewarify = module.exports = {};
|
|
|
|
/** @enum */
|
|
middlewarify.Type = {
|
|
BEFORE: 'before'
|
|
};
|