Api cleanups

Can we have a `TypeSize` typedef instead of `u8`?