Aleph-Alpha / ts-rs

Generate TypeScript bindings from Rust types
MIT License
1.15k stars 115 forks source link

Implement time Duration #155

Closed tlbdk closed 1 year ago

NyxCode commented 1 year ago

thanks

NyxCode commented 1 year ago

I will revert this change. The goal is that all types supported out-of-the-box are compatible with how serde_json serializes them. std::time::Duration is, by default, serialized as {secs: .., nanos: ..}.