@exodus/currency
Version: 0.0.0
Interfaces
CreateFromBaseValueParams
BNLike
ConversionUnitObject
Unit
CreateFromBaseValueParams
BNLike
Legacy bn.js-shaped value. `@exodus/currency` historically accepted these
in the `Unit` factory (the constructor's `isMaybeBN` branch handles them,
throwing for non-base units and accepting for `baseUnit`). New code should
pass `bigint`, `BigIntWrapper`, `string`, or `number` instead.
ConversionUnitObject
Unit
Functions
Type Aliases
UnitTypeWithUnits
ConversionUnitFn
Definitions
NumberFraction
NumberLike
UnitMap
UnitTypeWithUnits
`UnitType.create({ a: 0, b: 8 })` returns `UnitType & { a: Unit; b: Unit }`,
exposing the runtime-attached unit properties (the deprecated indexed-name
access path) to TS consumers. Use `.units[name]` instead.
ConversionUnitFn
Definitions
NumberFraction
NumberLike
UnitMap
