unitsnet-js
Version:
A better way to hold unit variables and easily convert to the destination unit
363 lines (362 loc) • 17 kB
TypeScript
import { BaseUnit, ToStringOptions } from "../base-unit";
/** API DTO represents a ElectricPotentialChangeRate */
export interface ElectricPotentialChangeRateDto {
/** The value of the ElectricPotentialChangeRate */
value: number;
/** The specific unit that the ElectricPotentialChangeRate value is representing */
unit: ElectricPotentialChangeRateUnits;
}
/** ElectricPotentialChangeRateUnits enumeration */
export declare enum ElectricPotentialChangeRateUnits {
/** */
VoltsPerSecond = "VoltPerSecond",
/** */
VoltsPerMicrosecond = "VoltPerMicrosecond",
/** */
VoltsPerMinute = "VoltPerMinute",
/** */
VoltsPerHour = "VoltPerHour",
/** */
MicrovoltsPerSecond = "MicrovoltPerSecond",
/** */
MillivoltsPerSecond = "MillivoltPerSecond",
/** */
KilovoltsPerSecond = "KilovoltPerSecond",
/** */
MegavoltsPerSecond = "MegavoltPerSecond",
/** */
MicrovoltsPerMicrosecond = "MicrovoltPerMicrosecond",
/** */
MillivoltsPerMicrosecond = "MillivoltPerMicrosecond",
/** */
KilovoltsPerMicrosecond = "KilovoltPerMicrosecond",
/** */
MegavoltsPerMicrosecond = "MegavoltPerMicrosecond",
/** */
MicrovoltsPerMinute = "MicrovoltPerMinute",
/** */
MillivoltsPerMinute = "MillivoltPerMinute",
/** */
KilovoltsPerMinute = "KilovoltPerMinute",
/** */
MegavoltsPerMinute = "MegavoltPerMinute",
/** */
MicrovoltsPerHour = "MicrovoltPerHour",
/** */
MillivoltsPerHour = "MillivoltPerHour",
/** */
KilovoltsPerHour = "KilovoltPerHour",
/** */
MegavoltsPerHour = "MegavoltPerHour"
}
/** ElectricPotential change rate is the ratio of the electric potential change to the time during which the change occurred (value of electric potential changes per unit time). */
export declare class ElectricPotentialChangeRate extends BaseUnit {
protected value: number;
private voltspersecondLazy;
private voltspermicrosecondLazy;
private voltsperminuteLazy;
private voltsperhourLazy;
private microvoltspersecondLazy;
private millivoltspersecondLazy;
private kilovoltspersecondLazy;
private megavoltspersecondLazy;
private microvoltspermicrosecondLazy;
private millivoltspermicrosecondLazy;
private kilovoltspermicrosecondLazy;
private megavoltspermicrosecondLazy;
private microvoltsperminuteLazy;
private millivoltsperminuteLazy;
private kilovoltsperminuteLazy;
private megavoltsperminuteLazy;
private microvoltsperhourLazy;
private millivoltsperhourLazy;
private kilovoltsperhourLazy;
private megavoltsperhourLazy;
/**
* Create a new ElectricPotentialChangeRate.
* @param value The value.
* @param fromUnit The ‘ElectricPotentialChangeRate’ unit to create from.
* The default unit is VoltsPerSecond
*/
constructor(value: number, fromUnit?: ElectricPotentialChangeRateUnits);
/**
* The base value of ElectricPotentialChangeRate is VoltsPerSecond.
* This accessor used when needs a value for calculations and it's better to use directly the base value
*/
get BaseValue(): number;
/** Gets the default unit used when creating instances of the unit or its DTO */
protected get baseUnit(): ElectricPotentialChangeRateUnits.VoltsPerSecond;
/** */
get VoltsPerSecond(): number;
/** */
get VoltsPerMicrosecond(): number;
/** */
get VoltsPerMinute(): number;
/** */
get VoltsPerHour(): number;
/** */
get MicrovoltsPerSecond(): number;
/** */
get MillivoltsPerSecond(): number;
/** */
get KilovoltsPerSecond(): number;
/** */
get MegavoltsPerSecond(): number;
/** */
get MicrovoltsPerMicrosecond(): number;
/** */
get MillivoltsPerMicrosecond(): number;
/** */
get KilovoltsPerMicrosecond(): number;
/** */
get MegavoltsPerMicrosecond(): number;
/** */
get MicrovoltsPerMinute(): number;
/** */
get MillivoltsPerMinute(): number;
/** */
get KilovoltsPerMinute(): number;
/** */
get MegavoltsPerMinute(): number;
/** */
get MicrovoltsPerHour(): number;
/** */
get MillivoltsPerHour(): number;
/** */
get KilovoltsPerHour(): number;
/** */
get MegavoltsPerHour(): number;
/**
* Create a new ElectricPotentialChangeRate instance from a VoltsPerSecond
*
* @param value The unit as VoltsPerSecond to create a new ElectricPotentialChangeRate from.
* @returns The new ElectricPotentialChangeRate instance.
*/
static FromVoltsPerSecond(value: number): ElectricPotentialChangeRate;
/**
* Create a new ElectricPotentialChangeRate instance from a VoltsPerMicrosecond
*
* @param value The unit as VoltsPerMicrosecond to create a new ElectricPotentialChangeRate from.
* @returns The new ElectricPotentialChangeRate instance.
*/
static FromVoltsPerMicrosecond(value: number): ElectricPotentialChangeRate;
/**
* Create a new ElectricPotentialChangeRate instance from a VoltsPerMinute
*
* @param value The unit as VoltsPerMinute to create a new ElectricPotentialChangeRate from.
* @returns The new ElectricPotentialChangeRate instance.
*/
static FromVoltsPerMinute(value: number): ElectricPotentialChangeRate;
/**
* Create a new ElectricPotentialChangeRate instance from a VoltsPerHour
*
* @param value The unit as VoltsPerHour to create a new ElectricPotentialChangeRate from.
* @returns The new ElectricPotentialChangeRate instance.
*/
static FromVoltsPerHour(value: number): ElectricPotentialChangeRate;
/**
* Create a new ElectricPotentialChangeRate instance from a MicrovoltsPerSecond
*
* @param value The unit as MicrovoltsPerSecond to create a new ElectricPotentialChangeRate from.
* @returns The new ElectricPotentialChangeRate instance.
*/
static FromMicrovoltsPerSecond(value: number): ElectricPotentialChangeRate;
/**
* Create a new ElectricPotentialChangeRate instance from a MillivoltsPerSecond
*
* @param value The unit as MillivoltsPerSecond to create a new ElectricPotentialChangeRate from.
* @returns The new ElectricPotentialChangeRate instance.
*/
static FromMillivoltsPerSecond(value: number): ElectricPotentialChangeRate;
/**
* Create a new ElectricPotentialChangeRate instance from a KilovoltsPerSecond
*
* @param value The unit as KilovoltsPerSecond to create a new ElectricPotentialChangeRate from.
* @returns The new ElectricPotentialChangeRate instance.
*/
static FromKilovoltsPerSecond(value: number): ElectricPotentialChangeRate;
/**
* Create a new ElectricPotentialChangeRate instance from a MegavoltsPerSecond
*
* @param value The unit as MegavoltsPerSecond to create a new ElectricPotentialChangeRate from.
* @returns The new ElectricPotentialChangeRate instance.
*/
static FromMegavoltsPerSecond(value: number): ElectricPotentialChangeRate;
/**
* Create a new ElectricPotentialChangeRate instance from a MicrovoltsPerMicrosecond
*
* @param value The unit as MicrovoltsPerMicrosecond to create a new ElectricPotentialChangeRate from.
* @returns The new ElectricPotentialChangeRate instance.
*/
static FromMicrovoltsPerMicrosecond(value: number): ElectricPotentialChangeRate;
/**
* Create a new ElectricPotentialChangeRate instance from a MillivoltsPerMicrosecond
*
* @param value The unit as MillivoltsPerMicrosecond to create a new ElectricPotentialChangeRate from.
* @returns The new ElectricPotentialChangeRate instance.
*/
static FromMillivoltsPerMicrosecond(value: number): ElectricPotentialChangeRate;
/**
* Create a new ElectricPotentialChangeRate instance from a KilovoltsPerMicrosecond
*
* @param value The unit as KilovoltsPerMicrosecond to create a new ElectricPotentialChangeRate from.
* @returns The new ElectricPotentialChangeRate instance.
*/
static FromKilovoltsPerMicrosecond(value: number): ElectricPotentialChangeRate;
/**
* Create a new ElectricPotentialChangeRate instance from a MegavoltsPerMicrosecond
*
* @param value The unit as MegavoltsPerMicrosecond to create a new ElectricPotentialChangeRate from.
* @returns The new ElectricPotentialChangeRate instance.
*/
static FromMegavoltsPerMicrosecond(value: number): ElectricPotentialChangeRate;
/**
* Create a new ElectricPotentialChangeRate instance from a MicrovoltsPerMinute
*
* @param value The unit as MicrovoltsPerMinute to create a new ElectricPotentialChangeRate from.
* @returns The new ElectricPotentialChangeRate instance.
*/
static FromMicrovoltsPerMinute(value: number): ElectricPotentialChangeRate;
/**
* Create a new ElectricPotentialChangeRate instance from a MillivoltsPerMinute
*
* @param value The unit as MillivoltsPerMinute to create a new ElectricPotentialChangeRate from.
* @returns The new ElectricPotentialChangeRate instance.
*/
static FromMillivoltsPerMinute(value: number): ElectricPotentialChangeRate;
/**
* Create a new ElectricPotentialChangeRate instance from a KilovoltsPerMinute
*
* @param value The unit as KilovoltsPerMinute to create a new ElectricPotentialChangeRate from.
* @returns The new ElectricPotentialChangeRate instance.
*/
static FromKilovoltsPerMinute(value: number): ElectricPotentialChangeRate;
/**
* Create a new ElectricPotentialChangeRate instance from a MegavoltsPerMinute
*
* @param value The unit as MegavoltsPerMinute to create a new ElectricPotentialChangeRate from.
* @returns The new ElectricPotentialChangeRate instance.
*/
static FromMegavoltsPerMinute(value: number): ElectricPotentialChangeRate;
/**
* Create a new ElectricPotentialChangeRate instance from a MicrovoltsPerHour
*
* @param value The unit as MicrovoltsPerHour to create a new ElectricPotentialChangeRate from.
* @returns The new ElectricPotentialChangeRate instance.
*/
static FromMicrovoltsPerHour(value: number): ElectricPotentialChangeRate;
/**
* Create a new ElectricPotentialChangeRate instance from a MillivoltsPerHour
*
* @param value The unit as MillivoltsPerHour to create a new ElectricPotentialChangeRate from.
* @returns The new ElectricPotentialChangeRate instance.
*/
static FromMillivoltsPerHour(value: number): ElectricPotentialChangeRate;
/**
* Create a new ElectricPotentialChangeRate instance from a KilovoltsPerHour
*
* @param value The unit as KilovoltsPerHour to create a new ElectricPotentialChangeRate from.
* @returns The new ElectricPotentialChangeRate instance.
*/
static FromKilovoltsPerHour(value: number): ElectricPotentialChangeRate;
/**
* Create a new ElectricPotentialChangeRate instance from a MegavoltsPerHour
*
* @param value The unit as MegavoltsPerHour to create a new ElectricPotentialChangeRate from.
* @returns The new ElectricPotentialChangeRate instance.
*/
static FromMegavoltsPerHour(value: number): ElectricPotentialChangeRate;
/**
* Gets the base unit enumeration associated with ElectricPotentialChangeRate
* @returns The unit enumeration that can be used to interact with this type
*/
protected static getUnitEnum(): typeof ElectricPotentialChangeRateUnits;
/**
* Gets the default unit used when creating instances of the unit or its DTO
* @returns The unit enumeration value used as a default parameter in constructor and DTO methods
*/
protected static getBaseUnit(): ElectricPotentialChangeRateUnits.VoltsPerSecond;
/**
* Create API DTO represent a ElectricPotentialChangeRate unit.
* @param holdInUnit The specific ElectricPotentialChangeRate unit to be used in the unit representation at the DTO
*/
toDto(holdInUnit?: ElectricPotentialChangeRateUnits): ElectricPotentialChangeRateDto;
/**
* Create a ElectricPotentialChangeRate unit from an API DTO representation.
* @param dtoElectricPotentialChangeRate The ElectricPotentialChangeRate API DTO representation
*/
static FromDto(dtoElectricPotentialChangeRate: ElectricPotentialChangeRateDto): ElectricPotentialChangeRate;
/**
* Convert ElectricPotentialChangeRate to a specific unit value.
* @param toUnit The specific unit to convert to
* @returns The value of the specific unit provided.
*/
convert(toUnit: ElectricPotentialChangeRateUnits): number;
private convertFromBase;
private convertToBase;
/**
* Format the ElectricPotentialChangeRate to string.
* Note! the default format for ElectricPotentialChangeRate is VoltsPerSecond.
* To specify the unit format set the 'unit' parameter.
* @param unit The unit to format the ElectricPotentialChangeRate.
* @param options The ToString options, it also can be the number of fractional digits to keep that deprecated and moved to the options object. support in number will be dropped in the upcoming versions.
* @returns The string format of the ElectricPotentialChangeRate.
*/
toString(unit?: ElectricPotentialChangeRateUnits, options?: number | ToStringOptions): string;
/**
* Get ElectricPotentialChangeRate unit abbreviation.
* Note! the default abbreviation for ElectricPotentialChangeRate is VoltsPerSecond.
* To specify the unit abbreviation set the 'unitAbbreviation' parameter.
* @param unitAbbreviation The unit abbreviation of the ElectricPotentialChangeRate.
* @returns The abbreviation string of ElectricPotentialChangeRate.
*/
getUnitAbbreviation(unitAbbreviation?: ElectricPotentialChangeRateUnits): string;
/**
* Check if the given ElectricPotentialChangeRate are equals to the current ElectricPotentialChangeRate.
* @param electricPotentialChangeRate The other ElectricPotentialChangeRate.
* @returns True if the given ElectricPotentialChangeRate are equal to the current ElectricPotentialChangeRate.
*/
equals(electricPotentialChangeRate: ElectricPotentialChangeRate): boolean;
/**
* Compare the given ElectricPotentialChangeRate against the current ElectricPotentialChangeRate.
* @param electricPotentialChangeRate The other ElectricPotentialChangeRate.
* @returns 0 if they are equal, -1 if the current ElectricPotentialChangeRate is less then other, 1 if the current ElectricPotentialChangeRate is greater then other.
*/
compareTo(electricPotentialChangeRate: ElectricPotentialChangeRate): number;
/**
* Add the given ElectricPotentialChangeRate with the current ElectricPotentialChangeRate.
* @param electricPotentialChangeRate The other ElectricPotentialChangeRate.
* @returns A new ElectricPotentialChangeRate instance with the results.
*/
add(electricPotentialChangeRate: ElectricPotentialChangeRate): ElectricPotentialChangeRate;
/**
* Subtract the given ElectricPotentialChangeRate with the current ElectricPotentialChangeRate.
* @param electricPotentialChangeRate The other ElectricPotentialChangeRate.
* @returns A new ElectricPotentialChangeRate instance with the results.
*/
subtract(electricPotentialChangeRate: ElectricPotentialChangeRate): ElectricPotentialChangeRate;
/**
* Multiply the given ElectricPotentialChangeRate with the current ElectricPotentialChangeRate.
* @param electricPotentialChangeRate The other ElectricPotentialChangeRate.
* @returns A new ElectricPotentialChangeRate instance with the results.
*/
multiply(electricPotentialChangeRate: ElectricPotentialChangeRate): ElectricPotentialChangeRate;
/**
* Divide the given ElectricPotentialChangeRate with the current ElectricPotentialChangeRate.
* @param electricPotentialChangeRate The other ElectricPotentialChangeRate.
* @returns A new ElectricPotentialChangeRate instance with the results.
*/
divide(electricPotentialChangeRate: ElectricPotentialChangeRate): ElectricPotentialChangeRate;
/**
* Modulo the given ElectricPotentialChangeRate with the current ElectricPotentialChangeRate.
* @param electricPotentialChangeRate The other ElectricPotentialChangeRate.
* @returns A new ElectricPotentialChangeRate instance with the results.
*/
modulo(electricPotentialChangeRate: ElectricPotentialChangeRate): ElectricPotentialChangeRate;
/**
* Pow the given ElectricPotentialChangeRate with the current ElectricPotentialChangeRate.
* @param electricPotentialChangeRate The other ElectricPotentialChangeRate.
* @returns A new ElectricPotentialChangeRate instance with the results.
*/
pow(electricPotentialChangeRate: ElectricPotentialChangeRate): ElectricPotentialChangeRate;
}