That would improve the situation.
There are more issues with typaliasing instead of having its own enum though, as mentioned in the GitHub issue.
I’d prefer to have it fixed & improved from the library’s side. Just fixing the new exhaustiveness problem only solves one of the existing issues.
Marc Knaup
05/31/2021, 3:42 PM
Just now I ran into the issue that I’ve accidentally serialized
Duration
to database and for GraphQL with
toString()
instead of
toIsoString()
😅
Good that I’ve got unit tests 😑
i
ilya.gorbunov
05/31/2021, 4:00 PM
Did you mean to post in the other thread (this is about enums)? 🙂