Closed ggrossetie closed 4 years ago
Consider the following code:
/** * Enum for tri-state values. * @readonly * @enum {number} */ var triState = { /** The true value */ TRUE: 1, /** The false value */ FALSE: -1, /** @type {boolean} */ MAYBE: true, };
Currently the generated type definition is:
/** * Enum for tri-state values. * @readonly * @enum {number} */ declare enum triState { TRUE = 1, FALSE = -1, MAYBE = true }
I think we should preserve comments on properties:
/** * Enum for tri-state values. * @readonly * @enum {number} */ declare enum triState { /** The true value */ TRUE = 1, /** The false value */ FALSE = -1, /** @type {boolean} */ MAYBE = true }
👍
Consider the following code:
Currently the generated type definition is:
I think we should preserve comments on properties: