Aleph-Alpha / ts-rs

Generate TypeScript bindings from Rust types
MIT License
989 stars 99 forks source link

Add all of `ts(function)` to docs. #327

Closed xiao-e-yun closed 1 month ago

xiao-e-yun commented 1 month ago

It is hard to know what functions i can use. ts(optional) even not show on examples and docs.

NyxCode commented 1 month ago

docs tests, if the example is not enough If you want to extend the example, feel free to open a PR.

escritorio-gustavo commented 1 month ago

Also, if you use an invalid #[ts(non_sense)] attribute, the compiler error will tell you what the valid attributes are in the current context