1 |
|
2 |
|
3 | import { BigInt } from '@polkadot/x-bigint';
|
4 | export const hasBigInt = typeof BigInt === 'function' && typeof BigInt.asIntN === 'function';
|
5 | export const hasBuffer = typeof Buffer !== 'undefined';
|
6 | export const hasCjs = typeof require === 'function' && typeof module !== 'undefined';
|
7 | export const hasDirname = typeof __dirname !== 'undefined';
|
8 | export const hasEsm = !hasCjs;
|
9 | export const hasProcess = typeof process === 'object';
|
10 | export const hasWasm = typeof WebAssembly !== 'undefined'; |
\ | No newline at end of file |