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:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user