@@ -80,8 +80,8 @@ declare global {
8080 min : ( other : bigint , ...others : bigint [ ] ) => bigint ;
8181 max : ( other : bigint , ...others : bigint [ ] ) => bigint ;
8282 sum : ( others : bigint [ ] ) => bigint ;
83- format : ( decimals ?: number , digits ?: number ) => string ;
84- toFloat : ( decimals ?: number ) => number ;
83+ format : ( decimals ?: number | bigint , digits ?: number | bigint ) => string ;
84+ toFloat : ( decimals ?: number | bigint ) => number ;
8585
8686 mulDiv : ( other : bigint , scale : bigint ) => bigint ;
8787 mulDivUp : ( other : bigint , scale : bigint ) => bigint ;
@@ -160,7 +160,7 @@ declare global {
160160 max : ( other : bigint , ...others : bigint [ ] ) => bigint ;
161161 sum : ( others : bigint [ ] ) => bigint ;
162162
163- pow10 : ( power : bigint ) => bigint ;
163+ pow10 : ( power : bigint | bigint ) => bigint ;
164164 }
165165}
166166
@@ -179,10 +179,10 @@ BigInt.prototype.max = function (y: bigint, ...others: bigint[]) {
179179BigInt . prototype . sum = function ( others : bigint [ ] ) {
180180 return sum ( this as bigint , others ) ;
181181} ;
182- BigInt . prototype . format = function ( decimals ?: number , digits ?: number ) {
182+ BigInt . prototype . format = function ( decimals ?: number | bigint , digits ?: number | bigint ) {
183183 return format ( this as bigint , decimals , digits ) ;
184184} ;
185- BigInt . prototype . toFloat = function ( decimals ?: number ) {
185+ BigInt . prototype . toFloat = function ( decimals ?: number | bigint ) {
186186 return toFloat ( this as bigint , decimals ) ;
187187} ;
188188
0 commit comments