measurement-toolkit"Unit"Unit

Class: Unit

Hierarchy

  • Unit

SimpleUnit

Speed

Implements

Index

Accessors

Methods

Accessors

to

get to(): any

Defined in Unit.ts:14

Returns: any

Methods

Abstract add

add(unit: IUnit): this

Implementation of IUnit

Defined in Unit.ts:22

Parameters:

Name Type
unit IUnit

Returns: this


Abstract divideBy

divideBy(unit: IUnit): this

Implementation of IUnit

Defined in Unit.ts:24

Parameters:

Name Type
unit IUnit

Returns: this


getConverters

getConverters(): object

Defined in Unit.ts:18

Returns: object

  • [ key: string]: function

▸ (): IUnit


Abstract multiply

multiply(unit: IUnit): this

Implementation of IUnit

Defined in Unit.ts:26

Parameters:

Name Type
unit IUnit

Returns: this


Abstract percentageOf

percentageOf(unit: IUnit): this

Implementation of IUnit

Defined in Unit.ts:28

Parameters:

Name Type
unit IUnit

Returns: this


Abstract subtract

subtract(unit: IUnit): this

Implementation of IUnit

Defined in Unit.ts:30

Parameters:

Name Type
unit IUnit

Returns: this