This repository was archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
Exported names on exported enum are ignored #780
Copy link
Copy link
Open
Description
JS:
goog.module('hr.util.TriState');
goog.module.declareLegacyNamespace();
/**
* Representation of a tri-state boolean.
* @enum {string}
*/
exports = {
UNKNOWN: 'UNKNOWN',
FALSE: 'FALSE',
TRUE: 'TRUE',
};
/**
* Converts a boolean into a TriState enum.
* @param {boolean} bool
* @return {!TriState}
*/
exports.fromBool = function(bool) {
return bool ? TriState.TRUE : TriState.FALSE;
};TS:
declare namespace ಠ_ಠ.clutz.hr.util {
/**
* Representation of a tri-state boolean.
*/
enum TriState {
FALSE = 'FALSE' ,
TRUE = 'TRUE' ,
UNKNOWN = 'UNKNOWN' ,
}
}
declare module 'goog:hr.util.TriState' {
import TriState = ಠ_ಠ.clutz.hr.util.TriState;
export default TriState;
}The correct way to emit this is via namespace merging:
Metadata
Metadata
Assignees
Labels
No labels