myio-js-library 0.1.177 → 0.1.180

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -2,9 +2,10 @@
2
2
  * Formats energy values with appropriate units (kWh, MWh, GWh) using Brazilian locale formatting
3
3
  * @param value - The energy value to format
4
4
  * @param unit - Optional unit of the energy value ('kWh', 'MWh', 'GWh')
5
+ * @param decimals - Number of decimal places (default: 3)
5
6
  * @returns Formatted energy string with Brazilian locale number formatting
6
7
  */
7
- declare function formatEnergy(value: number, unit?: string): string;
8
+ declare function formatEnergy(value: number, unit?: string, decimals?: number): string;
8
9
  /**
9
10
  * Formats all energy values to the same unit for consistent display
10
11
  * @param values - Array of energy values with their units OR array of numbers (assumes kWh)