ChainSafe / fixed-sized-numbers-ts

Fixed Sized BigNumbers in TypeScript
2 stars 4 forks source link

Generalize import API #3

Open ansermino opened 5 years ago

ansermino commented 5 years ago

(Written by @JonathanLorimer)

As a user I would like to be able to declare one import and have access to all Integer constructors

Expected

import { Uint8, Int8 } from "fixed-sized-numbers-ts";

Actual:

import { Uint8 } from "fixed-sized-numbers-ts/lib/Uint";
import { Int8 } from "fixed-sized-numbers-ts/lib/Int";

Also we might have to provide types for the lib

For reference on creating a typescript library