File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ function runTests(BN: typeof BN_esm) {
3333 const actualArray = new BN ( [ 0x40 , 0x20 ] ) ;
3434 const actualUint8Array = new BN ( new Uint8Array ( [ 0x40 , 0x20 ] ) ) ;
3535 const actualString = new BN ( "0x4020" ) ;
36+ const actualBigint = new BN ( BigInt ( "0x4020" ) ) ;
3637
3738 new BN ( "10" , 16 ) . modrn ( 256 ) ; // $ExpectType number
3839 BN . BN ; // $ExpectType typeof BN
Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ declare class BN {
2323 static wordSize : 26 ;
2424
2525 constructor (
26- number : number | string | number [ ] | Uint8Array | Buffer | BN ,
26+ number : bigint | number | string | number [ ] | Uint8Array | Buffer | BN ,
2727 base ?: number | "hex" ,
2828 endian ?: BN . Endianness ,
2929 ) ;
3030 constructor (
31- number : number | string | number [ ] | Uint8Array | Buffer | BN ,
31+ number : bigint | number | string | number [ ] | Uint8Array | Buffer | BN ,
3232 endian ?: BN . Endianness ,
3333 ) ;
3434
Original file line number Diff line number Diff line change 11{
22 "private" : true ,
33 "name" : " @types/bn.js" ,
4- "version" : " 5.1 .9999" ,
4+ "version" : " 5.2 .9999" ,
55 "projects" : [
66 " https://github.com/indutny/bn.js"
77 ],
2323 {
2424 "name" : " Gaylor Bosson" ,
2525 "githubUsername" : " Gilthoniel"
26+ },
27+ {
28+ "name" : " JounQin" ,
29+ "githubUsername" : " JounQin"
2630 }
2731 ]
2832}
You can’t perform that action at this time.
0 commit comments