Commit Graph
88 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 a79a6c03ed implement TS for usize and isize 2021-05-01 16:40:14 +02:00
Moritz Bischof 8462b46362 format export! output 2021-04-06 11:12:54 +02:00
Moritz Bischof 6209eabe27 update tests 2021-04-06 10:25:33 +02:00
Moritz Bischof 3c536e44a7 format & publish 2.3 2021-04-06 09:11:30 +02:00
Moritz Bischof 1feb487270 Merge remote-tracking branch 'origin/main' into main 2021-04-06 09:07:13 +02:00
NyxCode b591598e11 Merge pull request #4 from DusterTheFirst/main
More default derives
2021-04-06 09:06:43 +02:00
Moritz Bischof 3f8cf46cdb dont add newline after enum variants 2021-04-06 08:49:56 +02:00
Zachary Kohnen 24ad768dce more default derives 2021-04-05 17:56:39 -04: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
NyxCode 7520c245d5 Merge pull request #3 from Conder-Systems/main
Stateful Enum and Serde support
2021-01-22 14:13:06 +01:00
Jeremy Drouillard c735043c86 Update serde compatability documentation 2021-01-21 13:21:03 -08:00
Jeremy Drouillard 6bbe0ddf9f Serde is a dev dependency
It is only used for tests.
2021-01-21 13:18:14 -08:00
Jeremy Drouillard a1ca1724d9 Rename enum test to union serde 2021-01-21 13:15:20 -08:00
Jeremy Drouillard 4577033942 Remove serde compat flags 2021-01-21 13:14:33 -08:00
Jeremy Drouillard f443705876 Update readme to indicate enum support 2021-01-21 13:07:00 -08: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 a4926276c5 Ensure tagged enums work in named fields 2021-01-21 12:27:18 -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 f50585b572 Test for union with data 2021-01-20 13:08:41 -08:00
Jeremy Drouillard 69c9815b4f Serde compatibility with enum and tag field 2021-01-20 11:16:52 -08:00
Moritz Bischof f6a0bd896a don't import types from the same file when using export! 2020-12-20 00:42:43 +01:00
Moritz Bischof 3c34ad6146 depend on exact version 2020-12-19 17:42:40 +01:00
Moritz Bischof 53309b294a bump version 2020-12-19 17:31:00 +01:00
Moritz Bischof a9e5bfade3 format 2020-12-19 17:29:53 +01:00
Moritz Bischof 57051a1a63 dont import type twice in same file 2020-12-19 17:29:28 +01:00
Moritz Bischof 2efc2830d1 bump version 2020-12-19 17:09:16 +01:00
Moritz Bischof 47b0e5d57a deduplicate imports 2020-12-19 17:08:25 +01:00
Moritz Bischof bc45ce4b5a v2.1.0 2020-12-19 16:59:31 +01:00
NyxCode db41137dfd include logo in readme 2020-12-19 04:42:20 +01:00
NyxCode ff41216cb0 update logo 2020-12-19 04:39:15 +01:00
NyxCode 069ffb554c add logo 2020-12-19 04:36:59 +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 ed8aa66b17 bump version 2020-12-18 15:14:04 +01:00
Moritz Bischof 316b3602e8 update docs 2020-12-18 15:13:23 +01:00
Moritz Bischof 5b4e611bf2 update readme 2020-12-18 15:01:32 +01:00