You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just discovered this nice crate. There is one thing that made me pause, there is no example of Typescript that the crate would generate.
My suggestion / request is adding the example below in the README.md (I'm taking the current content of the section and add what I would like to add) :
use ts_rs::TS;#[derive(TS)]#[ts(export)]structUser{user_id:i32,first_name:String,last_name:String,}
When running cargo test, the TypeScript bindings will be exported to the file bindings/User.ts.
I've just discovered this nice crate. There is one thing that made me pause, there is no example of Typescript that the crate would generate.
My suggestion / request is adding the example below in the
README.md
(I'm taking the current content of the section and add what I would like to add) :Something like that.
The text was updated successfully, but these errors were encountered: