ethereumjs / fixed-bn.js

a bn.js wrapper that constrains numbers to a fixed width
7 stars 9 forks source link

Migrate to typescript #10

Closed s1na closed 5 years ago

s1na commented 5 years ago

This is a subset of #8. I tried to migrate the existing code to typescript without much modifications. The biggest difference is how Factory works. Typescript doesn't allow exporting something that returns a private class. So I pulled FixWidth out of factory and added some methods for instantiation.

cc @holgerd77