measurement-toolkit"ISimpleUnit"ISimpleUnit

Interface: ISimpleUnit

Hierarchy

ISimpleUnit

IUnitOfLength

IUnitOfMass

IUnitOfTime

Implemented by

Index

Properties

Methods

Properties

symbol

symbol: string

Defined in ISimpleUnit.ts:13


to

to: object

Overrides IUnit.to

Defined in ISimpleUnit.ts:14

Type declaration:

  • [ key: string]: function

▸ (): ISimpleUnit


value

value: number

Defined in ISimpleUnit.ts:12

Methods

add

add(unit: IUnit): this

Inherited from IUnit.add

Defined in IUnit.ts:12

Parameters:

Name Type
unit IUnit

Returns: this


divideBy

divideBy(unit: IUnit): this

Inherited from IUnit.divideBy

Defined in IUnit.ts:14

Parameters:

Name Type
unit IUnit

Returns: this


getConverters

getConverters(): object

Defined in ISimpleUnit.ts:15

Returns: object

  • [ key: string]: function

▸ (): ISimpleUnit


multiply

multiply(unit: IUnit): this

Inherited from IUnit.multiply

Defined in IUnit.ts:16

Parameters:

Name Type
unit IUnit

Returns: this


percentageOf

percentageOf(unit: IUnit): this

Inherited from IUnit.percentageOf

Defined in IUnit.ts:18

Parameters:

Name Type
unit IUnit

Returns: this


subtract

subtract(unit: IUnit): this

Inherited from IUnit.subtract

Defined in IUnit.ts:20

Parameters:

Name Type
unit IUnit

Returns: this


toString

toString(): string

Inherited from IUnit.toString

Defined in IUnit.ts:22

Returns: string