make typescript bindings rely on wasm type codec methods