Remove BnList type (#402)

* Add BN min/max

* fixes

* array 2+ type

* assert

* rv hardcoding

* remove list type

* rv import
This commit is contained in:
kwingram25
2019-05-08 11:38:44 +02:00
committed by Jaco Greeff
parent c23957f683
commit b0d8c85057
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -5,7 +5,6 @@
import BN from 'bn.js';
import assert from '../assert';
import { BnList } from '../types';
/**
* @name max
@@ -21,7 +20,7 @@ import { BnList } from '../types';
* ```
*/
export default function max (
...items: BnList
...items: BN[]
): BN {
assert(
items && items.length >= 2,
+2 -2
View File
@@ -5,7 +5,7 @@
import BN from 'bn.js';
import assert from '../assert';
import { BnList } from '../types';
/**
* @name min
* @summary Finds and returns the smallest value in an array of BNs.
@@ -20,7 +20,7 @@ import { BnList } from '../types';
* ```
*/
export default function min (
...items: BnList
...items: BN[]
): BN {
assert(
items && items.length >= 2,