Have a look at
examples.js on how to create type definitions in code for now.
Or peek inside the
lib-bare.js, where all conversion classes are located.
These are to be used directly when defining your own type.
Whenever a type takes some sort of arguments, they are static variables right at the top,
just make sure to set them correctly since there are, as of now, no integrity checks on them.
###What is still missing
Instead, every single number is stored as a double precision float.
This limits the usable range of integers to 53 bits, which means the maximum unsigned value is just over 9 quadrillion
and about ±4.5e15 for signed integers, though that could technically be expanded to ±9e15 since the sign is technically stored outside of the 53 bits.
In my use case this is not a problem, but for proper adherence to spec this should be addressed.