The current TS implementation is very basic, a lot of ts-ignore, any and just a few interfaces / types. Should be improved at some point in future.