Skip to content

Gets the converter function for a given number type (i.e. the equivalent of BigIntify, Numberify, or Stringify).

getConverterFunction<T>(val): (item) => T

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:177

Gets the converter function for a given number type (i.e. the equivalent of BigIntify, Numberify, or Stringify).

Type Parameters

T

T extends NumberType

Parameters

val

T

A value of the expected number type.

Returns

(item) => T

Edit this page on GitHub