Commit Graph
435 Commits
Author SHA1 Message Date
Moritz Bischof fb4f8f4dc0 update CHANGELOG.md 2024-02-03 22:40:25 +01:00
NyxCode e19b099def Merge pull request #224 from Aleph-Alpha/more-tests
Tests: Add tests for deeply nested generics and recursive types
2024-02-03 22:08:16 +01:00
Moritz Bischof 78d98cdba9 tests: generics::deeply_nested(), self_referential 2024-02-03 21:33:45 +01:00
escritorio-gustavo 5db57ab746 Merge pull request #218 from Aleph-Alpha/e2e
E2E tests + TypeList

Auto export dependencies
2024-02-01 17:05:34 -03:00
escritorio-gustavo 8eb28e5a53 Merge pull request #221 from Aleph-Alpha/typelist
Introduce TypeList, always export Dependencies as well
2024-02-01 17:01:51 -03:00
Moritz Bischof dcec4d89dd introduce mutex for file exports, change array tuple limit to 64 2024-02-01 20:48:06 +01:00
Gustavo d9464e3cec Merge branch 'typelist' of github.com:Aleph-Alpha/ts-rs into typelist 2024-02-01 15:12:41 -03:00
Gustavo 3de39ab39a Separate recursive exporting into mod 2024-02-01 15:07:55 -03:00
Moritz Bischof 646ccd9520 use stupidly large types in E2E test - maybe it fails on CI? 2024-02-01 18:52:33 +01:00
Moritz Bischof ab569e4447 recursively export all dependencies 2024-02-01 17:58:45 +01:00
Moritz Bischof 2375fbf50a remove old dependency implementation, fix warnings 2024-02-01 17:03:56 +01:00
Moritz Bischof 3e2b8cf095 fix missing import 2024-02-01 15:59:51 +01:00
Moritz Bischof 3fa1d4bec1 implement POC 2024-02-01 15:47:17 +01:00
Moritz Bischof 317eb9ef88 Merge branch 'main' into e2e 2024-01-31 22:28:42 +01:00
escritorio-gustavo 3b3fbf8a63 Merge pull request #174 from josema03/main
add "as" derive helper attribute
2024-01-31 16:18:34 -03:00
Moritz Bischof fdeb8c8732 split CI into multiple jobs 2024-01-31 20:14:59 +01:00
Moritz Bischof 2a2d8f0429 add e2e tests 2024-01-31 20:12:03 +01:00
Moritz Bischof 5773e28cb6 fix interaction with #[ts(optional)], expand tests 2024-01-30 21:08:42 +01:00
escritorio-gustavo 50f74b51a0 Merge pull request #209 from escritorio-gustavo/array_as_ts_tuple
Convert fixed size Rust array to fixed size TS tuple
2024-01-30 16:25:18 -03:00
escritorio-gustavo c7bcb73dc4 Use parsed_ty 2024-01-30 16:19:05 -03:00
escritorio-gustavo c12d956db6 Merge branch 'main' into main 2024-01-30 15:36:52 -03:00
escritorio-gustavo a0a3e1336a Merge pull request #216 from escritorio-gustavo/inline_generics_default
Inline generics with default types works, as long as there are no trait bounds
2024-01-30 15:23:45 -03:00
Gustavo fbead2ca56 Remove Temp value comment 2024-01-30 15:11:27 -03:00
Gustavo a9ef2b1b3a Make limit 128 2024-01-30 15:10:47 -03:00
escritorio-gustavo 5a5b5184c1 Merge pull request #213 from Aleph-Alpha/optional-nullable
Implement `#[ts(optional = nullable)]`
2024-01-30 15:09:14 -03:00
Gustavo 94bb2673f1 Inline generics with default types works, as long as there are no trait bounds 2024-01-30 14:47:58 -03:00
escritorio-gustavo 81f3205393 Merge branch 'Aleph-Alpha:main' into array_as_ts_tuple 2024-01-30 11:45:18 -03:00
escritorio-gustavo d5d202614f Apply requested changes to tuple.rs 2024-01-30 11:12:24 -03:00
escritorio-gustavo 76ea907551 Apply requested changes to newtype.rs 2024-01-30 11:11:40 -03:00
escritorio-gustavo f9a7ee423a Apply requested changes to named.rs 2024-01-30 11:08:52 -03:00
escritorio-gustavo 96a664a160 Remove duplicated check 2024-01-30 10:28:30 -03:00
escritorio-gustavo 836e145b92 Fix expected &Type found Type 2024-01-30 10:24:58 -03:00
escritorio-gustavo 979ea9b475 Fix expected &str found String 2024-01-30 10:23:03 -03:00
escritorio-gustavo cff9c5bfa5 Merge branch 'main' into main 2024-01-30 10:16:09 -03:00
Gustavo 3f79932398 Merge remote-tracking branch 'refs/remotes/origin/array_as_ts_tuple' 2024-01-30 09:40:10 -03:00
Gustavo e7215abd87 Add limit to ts tuple size and simplify array case in generics.rs 2024-01-30 09:39:54 -03:00
escritorio-gustavo a38ac4b996 Merge pull request #215 from escritorio-gustavo/fix_generic_inlining
Fix bug  in #212
2024-01-29 18:04:20 -03:00
Gustavo ef56d7a89b Use inline instead of name, Vec<string> was turning into Array 2024-01-29 17:59:34 -03:00
escritorio-gustavo 857e860c06 Merge branch 'Aleph-Alpha:main' into array_as_ts_tuple 2024-01-29 17:34:30 -03:00
escritorio-gustavo 1dc210bd2e Merge pull request #212 from escritorio-gustavo/inline_generics
Implement inline generics
2024-01-29 17:20:50 -03:00
Gustavo 9bc22995cc Add ignored tests for missing implementations 2024-01-29 16:55:05 -03:00
Moritz Bischof 456ec72dda adjust documentation 2024-01-29 20:19:06 +01:00
Moritz Bischof 966ae9f003 implement #[ts(optional = nullable)] 2024-01-29 20:15:24 +01:00
Gustavo 3667ef65fb Add a comment explaining why check for "null" 2024-01-29 15:33:29 -03:00
Gustavo 64544e05d6 Implement inline generics 2024-01-26 16:34:39 -03:00
escritorio-gustavo 5e9965be37 Merge pull request #210 from escritorio-gustavo/main
Run cargo fmt
2024-01-26 10:41:01 -03:00
Gustavo a3ac452e44 Run cargo fmt 2024-01-26 10:37:51 -03:00
Gustavo 613fef9d47 Delete commented code 2024-01-26 10:35:58 -03:00
escritorio-gustavo 71f4b0b8b1 Merge pull request #206 from escritorio-gustavo/enum_flattening
feat: Add support for enum flattening
2024-01-26 10:26:49 -03:00
Gustavo 1d72f6504a Convert Array to TS Tuple 2024-01-26 10:23:49 -03:00