UNPKG

js-electrical-engineering-equations

Version:

This is an ES6/ES2015 library of Electrical Engineering Equations. It works with Typescript, es6, and es5.

31 lines (27 loc) 519 B
/** * Battery runtime object */ class BatteryRuntime { /** * * @param {number} totalMin * @param {number} totalHours * @param {number} totalSeconds * @return {BatteryRuntime} */ constructor(totalMin = 0, totalHours = 0, totalSeconds = 0) { /** * @type {number} */ this.totalMin = totalMin; /** * @type {number} */ this.totalHours = totalHours; /** * @type {number} */ this.totalSeconds = totalSeconds; } } export default BatteryRuntime