/** @typedef {(string|number)} calc.NumberLike */

/** @typedef {string} */
calc.Operator;

/** @typedef {calc.NumberLike} calc.Result */
calc.Outcome;

/** @param {calc.NumberLike} x A number or a string. */
calc.readNumber = function(x) {
};

/** @typedef {Object} CalculatorBattery */
