clutz
clutz copied to clipboard
Incorrect typing for some modules
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;
}