Comments (4)
hey @archeoss, thanks for reporting this :)
Tuple structs aren't supported yet, would love a PR if you have the time!
I'll try to look into it in two weeks or so, I think. (or any time I have some free time available)
And yeah, type aliases work fine, I just wanted to report it in case someone else stumbles upon it.
from tsync.
Ah, I just realized we have another issue about this #43. Going to close this, feel free to continue the discussion there
from tsync.
hey @archeoss, thanks for reporting this :)
Tuple structs aren't supported yet, would love a PR if you have the time!
An alias type should work though:
#[tsync::tsync]
pub type Test = String;
from tsync.
Awesome, thanks. And just to clarify, we're aiming for something like this, right?
Input:
struct Todo(i32, String)
Output:
type Todo = [number, string]
from tsync.
Related Issues (13)
- Feature Request: Generate documentation in jsdoc format HOT 3
- Const JSON does not compile HOT 4
- error[E0603]: enum `TokenTree` is private HOT 3
- Enums with custom types HOT 3
- Feature request - `undefined` fields using the "optional parameter" `?` syntax HOT 1
- Custom type mapping HOT 1
- [feature request] Honour `#[serde(rename = "...")]` in the generated TypeScript types HOT 2
- [feature request] Tuples HOT 3
- [bug] Numeric enum is not converted correctly on v2.0.0. HOT 1
- [feature request] Support serde flatten HOT 2
- Feature Request: Supporting `const` scalars such as numbers and strings + enums (?) HOT 5
- tsync from other proc-macros? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tsync.