@isdk/bigint
Version:
The BigInteger class wrapped bn.js and native BitInt
54 lines (28 loc) • 898 B
Markdown
[@isdk/bigint](README.md) / Exports
# @isdk/bigint
## Table of contents
### Classes
- [BN](classes/BN.md)
- [BigIntNative](classes/BigIntNative.md)
### Interfaces
- [IBigInt](interfaces/IBigInt.md)
### Functions
- [detectBigInt](modules.md#detectbigint)
- [getBigInteger](modules.md#getbiginteger)
## Functions
### detectBigInt
▸ **detectBigInt**(): `boolean`
detect whether the native BigInt implementation exists
#### Returns
`boolean`
#### Defined in
[src/index.ts:12](https://github.com/isdk/bigint.js/blob/c098291/src/index.ts#L12)
___
### getBigInteger
▸ **getBigInteger**(): `Promise`<[`IBigInt`](interfaces/IBigInt.md)\>
return the native or pure js BigInt Class base on the platform
#### Returns
`Promise`<[`IBigInt`](interfaces/IBigInt.md)\>
the IBigInt Class
#### Defined in
[src/index.ts:20](https://github.com/isdk/bigint.js/blob/c098291/src/index.ts#L20)