mirror of
https://github.com/xazukx/ts-rs.git
synced 2026-11-18 22:30:26 +00:00
Update serde compatability documentation
This commit is contained in:
@@ -53,9 +53,11 @@ When running `cargo test`, the TypeScript bindings will be exported to the file
|
||||
- flatten structs/interfaces
|
||||
- generate necessary imports when exporting to multiple files
|
||||
|
||||
## serde compatibility layer
|
||||
With the `serde-compat` feature enabled, ts-rs tries parsing serde attributes.
|
||||
Please note that not all serde attributes are supported yet.
|
||||
## Serde Compatability
|
||||
Serde representations are supported for enums and structs. The serde tags supported on enums are:
|
||||
- tag & content
|
||||
- untagged
|
||||
|
||||
|
||||
## todo
|
||||
|
||||
|
||||
Reference in New Issue
Block a user