function bnToBnimport { bnToBn } from "https://dotland.deno.dev/x/polkadot@0.2.35/util/bn/index.ts"; bnToBn<ExtToBn extends ToBigInt | ToBn>(value?: | HexString | ExtToBn | BN | bigint | string | number | null): BNExamples import BN from 'https://esm.sh/bn.js@5.2.1'; import { bnToBn } from 'https://deno.land/x/polkadot@0.2.35/util/mod.ts'; bnToBn(0x1234); // => BN(0x1234) bnToBn(new BN(0x1234)); // => BN(0x1234) Type ParametersExtToBn extends ToBigInt | ToBnParametersoptionalvalue: | HexString | ExtToBn | BN | bigint | string | number | nullReturnsBN