Commit Graph
43 Commits
Author SHA1 Message Date
Moritz Bischof 49413b0678 adjust tests 2021-05-02 02:56:34 +02:00
Moritz Bischof 370cee753f don't include export in TS::decl 2021-05-02 02:56:20 +02:00
Moritz Bischof 3f8cf46cdb dont add newline after enum variants 2021-04-06 08:49:56 +02:00
Moritz Bischof 81e7f7fae8 avoid &String 2021-01-22 14:19:46 +01:00
Moritz Bischof a2838a8a06 format 2021-01-22 14:14:34 +01:00
Jeremy Drouillard 593413c1eb Allow untagged enums 2021-01-21 13:02:03 -08:00
Jeremy Drouillard 897f92ff7d Refactor enum impl to reuse type_def
This also enables referencing existing types in typescript unions
2021-01-21 12:36:53 -08:00
Jeremy Drouillard 331a5db260 Enums may reference other serializable enums 2021-01-21 12:20:21 -08:00
Jeremy Drouillard 30913deb9c Enum supports named fields 2021-01-20 22:01:35 -08:00
Jeremy Drouillard 9b5cc52a6b Union supports tuples 2021-01-20 21:19:44 -08:00
Jeremy Drouillard b70c356e8f Support unnamed types in enums 2021-01-20 21:06:05 -08:00
Jeremy Drouillard 6f4a7322f5 Split out type def function
Will be reused by enums
2021-01-20 19:26:55 -08:00
Jeremy Drouillard a68d030f25 Decouple unit and tuple from struct 2021-01-20 16:44:10 -08:00
Jeremy Drouillard 6de57d150c Decouple newtype from struct 2021-01-20 16:37:35 -08:00
Jeremy Drouillard 74ab9e0b55 Decouple named type from struct 2021-01-20 16:29:39 -08:00
Jeremy Drouillard b8f7612a2b Rename struct modules to types 2021-01-20 13:27:18 -08:00
Jeremy Drouillard 047a8670a0 Combine enum and struct module
These modules are tightly coupled. It makes sense for them to be in one types module.
2021-01-20 13:25:11 -08:00
Jeremy Drouillard 69c9815b4f Serde compatibility with enum and tag field 2021-01-20 11:16:52 -08:00
Moritz Bischof a9e5bfade3 format 2020-12-19 17:29:53 +01:00
Moritz Bischof bc45ce4b5a v2.1.0 2020-12-19 16:59:31 +01:00
Moritz Bischof c2fe000dc9 fix type_override with generated import 2020-12-19 04:05:40 +01:00
Moritz Bischof e52c81470c fmt 2020-12-19 03:58:35 +01:00
Moritz Bischof 48e805177f release v2 2020-12-19 03:58:14 +01:00
Moritz Bischof 316b3602e8 update docs 2020-12-18 15:13:23 +01:00
Moritz Bischof 138823ac4a prepare for release 2020-12-18 15:00:56 +01:00
Moritz Bischof 8365fcf5da fix build without serde-compat 2020-12-17 22:31:27 +01:00
Moritz Bischof 5e2638c622 refactor 2020-12-17 22:22:20 +01:00
Moritz Bischof 2a506ccd41 improve error messages 2020-12-17 21:24:08 +01:00
Moritz Bischof 941a6d6afe raise error when attempting to use enum with data 2020-12-17 21:20:45 +01:00
Moritz Bischof ff6952c263 format 2020-12-17 21:20:23 +01:00
Moritz Bischof 5aee598f49 implement #[ts(flatten)] 2020-12-16 15:50:25 +01:00
Moritz Bischof e8e1ed797c implement #[ts(skip)] 2020-12-16 15:20:11 +01:00
Moritz Bischof f926246ae4 make serde compat work for structs, fields and variants 2020-12-16 01:37:43 +01:00
Moritz Bischof 5435838412 add documentation & ci 2020-12-16 01:22:28 +01:00
Moritz Bischof ca4b4cebd8 allow unused for print_warning 2020-12-15 22:29:55 +01:00
Moritz Bischof 26ec23d1bf move import into conditional block 2020-12-15 22:28:39 +01:00
Moritz Bischof 8249a3d79e move import into conditional block 2020-12-15 22:26:25 +01:00
Moritz Bischof 2e065b745c serde compatibility layer 2020-12-15 22:25:16 +01:00
Moritz Bischof f5edefae6f simplify parsing 2020-12-15 18:55:30 +01:00
Moritz Bischof eccc3c9096 add "rename" and "rename_all" to structs 2020-12-15 17:22:34 +01:00
Moritz Bischof 5c939e705b remove log message 2020-12-15 17:06:41 +01:00
Moritz Bischof 68a0575353 add "rename" and "rename_all" to enums 2020-12-15 17:02:42 +01:00
Moritz Bischof c1359ce501 initial commit 2020-12-15 16:06:53 +01:00