indutny / bn.js

BigNum in pure javascript
MIT License
1.19k stars 150 forks source link

setn function signature in index.tx doesn't correspond with the library #289

Closed israel-gonzalezmedina closed 2 years ago

israel-gonzalezmedina commented 2 years ago

Hi. I am kind of new with typescript. I want to use the library, specifically the setn(index, value) but the editor shows me that the signature is senth(index) which is the signature in index.d.ts. In javascript code works like charm. but when use it with typescritp da error. maybe is something I need to do. Any help please

fanatid commented 2 years ago

This repo does not have TypeScript bindings, please re-create the issue in the correct repo. https://www.npmjs.com/package/@types/bn.js https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bn.js