clutz icon indicating copy to clipboard operation
clutz copied to clipboard

Incorrect typing for some modules

Open gmoothart opened this issue 9 years ago • 0 comments

For a goog.module defined like so:

goog.module('components.entitypicker.Messages');

const Type = goog.require('components.entitypicker.Type');


/** @const */
const Messages = {};

/**
 * @desc A list of accounts
 */
Messages.MSG_CONTAINER = goog.getMsg('Containers');


/**
 * Returns a localized message for the item type.
 * @param {?Type} type
 * @return {string}
 */
Messages.getItemText = function(type) {
  ...
};


/**
 * Common localized messages
 * @const
 */
exports = Messages;

clutz is generating a basically empty typing:

declare namespace ಠ_ಠ.clutz.module$exports$components$entitypicker$Messages {
}
declare module 'goog:components.entitypicker.Messages' {
  import alias = ಠ_ಠ.clutz.module$exports$components$entitypicker$Messages;
  export = alias;
}

gmoothart avatar Jul 22 '16 23:07 gmoothart