mirror of
https://github.com/xazukx/ts-rs.git
synced 2026-11-19 22:40:25 +00:00
2.4 KiB
2.4 KiB
master
Breaking
- Export types as
typeinstead ofìnterface(#203) - Automatically export all dependencies when using
#[ts(export)], addTS::dependency_types()(#221) - Remove support for "skip_serializing", "skip_serializing_if" and "skip_deserializing". (#204)
- Initially supporting these by skipping a field was a mistake. If a user wishes to skip a field, they can still
annotate it with
#[ts(skip)]
- Initially supporting these by skipping a field was a mistake. If a user wishes to skip a field, they can still
annotate it with
Features
- Implement
#[ts(as = "..")](#174) - For small arrays, generate tuples instead of
Array<T>(#209) - Implement
#[ts(optional = nullable)](#213) - Allow inlining of fields with generic types (#212, #215, #216)
- Allow flattening enum fields (#206)
- Add
semver-implcargo feature with support for the semver crate (#176) - Support
HashMapwith custom hashers (#173) - Add
import-esmcargo feature to import files with a.jsextension (#192) - Implement
#[ts(...)]equivalents for#[serde(tag = "...")],#[serde(tag = "...", content = "...")]and#[serde(untagged)](#227) - Support
#[serde(untagged)]on individual enum variants (#226) - Support for
#[serde(rename_all_fields = "...")](#225) - Export Rust doc comments/attributes on structs/enums as TSDoc strings (#187)