js-electrical-engineering-equations
Version:
This is an ES6/ES2015 library of Electrical Engineering Equations. It works with Typescript, es6, and es5.
44 lines (36 loc) • 1.03 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
/**
* Battery runtime object
*/
var BatteryRuntime =
/**
*
* @param {number} totalMin
* @param {number} totalHours
* @param {number} totalSeconds
* @return {BatteryRuntime}
*/
function BatteryRuntime() {
var totalMin = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
var totalHours = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
var totalSeconds = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
_classCallCheck(this, BatteryRuntime);
/**
* @type {number}
*/
this.totalMin = totalMin;
/**
* @type {number}
*/
this.totalHours = totalHours;
/**
* @type {number}
*/
this.totalSeconds = totalSeconds;
};
exports.default = BatteryRuntime;
module.exports = exports["default"];