Aleph-Alpha / ts-rs

Generate TypeScript bindings from Rust types
MIT License
1.08k stars 107 forks source link

Refactor infer_as #305

Closed NyxCode closed 5 months ago

NyxCode commented 5 months ago

Hey @escritorio-gustavo!

I've refactored the gigantic function to take &mut Type instead, and I think it got a lot cleaner, and avoids some allocations.