indutny / bn.js

BigNum in pure javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why do the read functions say they take in type `BN`?

SurienDG opened this issue · comments

Example:
When I try to do redSub(b: BN): RedBN it with a regular BN for b it gives me an error that says Error: red works only with red numbers.

So shouldn't the input type here be RedBN not BN?

image

Is this from some TS definition? If so, please contact the author of these definitions because we do not provide them.