tsync icon indicating copy to clipboard operation
tsync copied to clipboard

Synchronize rust and typescript types!

Results 10 tsync issues
Sort by recently updated
recently updated
newest added

Currently comments are generated as line comments. ``` // This is a comment on the type interface Foo { // This is a comment on a property bar: boolean //...

Currently the serde flatten attribute is not supported. It would be nice to have this code: ```rust #[tsync] #[derive(Serialize)] struct Outter { id: String, #[serde(flatten)] inner: Inner, } #[tsync] #[derive(Serialize)]...

Addresses #48 Will convert these Rust types: ```rust #[tsync] #[derive(Serialize)] /// Struct with flattened field. struct Author { name: String, #[serde(flatten)] name: AuthorName, } #[tsync] #[derive(Serialize)] struct AuthorName { alias:...

Currently, it seems that tuples (or at least, optional tuples) are output as 'unknown' - TypeScript has a tuple type, so it should be fairly easy to convert between Rust...

I have a type which looks like the following: ```rs #[tsync] #[derive(SomeDieselStuff, Serialize)] pub struct Foo { pub field1: Type1, pub field2: Type2, #[serde(rename = "type")] pub type_: FooType, //...

I would like to support [rust_decimal](https://crates.io/crates/rust_decimal)'s `Decimal` type. Depending on configuration, this type can be represented in serde as either a float or a string. This is further complicated by...

The following example, found in test/const/rust.rs does not compile for me: ``` #[tsync] const SERDE_JSON_2: serde_json::Value = json!({ "a": "b" }); ``` I get this error, among others: ``` mutable...

Hello again! In my project, I use a lot of enums, and it is often desirable to match on the variants. As a result, it'd be nice if something like...

uses the [goldenfile](https://github.com/calder/rust-goldenfile) crate to fail tests if the "goldenfile" is changed merging will require updating both #53 (to add the tests to the CI) and #51 (to add a...

`#[derive(Serialize_repr)]` works, but `#[derive(serde_repr::Serialize_repr)]` is ignored.