You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made a nice alternative handling external union types with type checking rather than using dynamic (which is not type safe).
I believe that dukat can obtain enough information to generate the union cases (specified in the kotlin-union repository)
It would be nice to have all instances of where union is required to be replaced with Union<...> from kotlin-union.
The readme of the repository explains the subtleties of the usage of the Union type.
⭐ Suggestion
I made a nice alternative handling external union types with type checking rather than using dynamic (which is not type safe).
I believe that dukat can obtain enough information to generate the union cases (specified in the kotlin-union repository)
It would be nice to have all instances of where union is required to be replaced with Union<...> from kotlin-union.
The readme of the repository explains the subtleties of the usage of the Union type.
📚 Additional Information
Kotlin Union Repo
The text was updated successfully, but these errors were encountered: