ahrefs / atd

Static types for JSON APIs
Other
316 stars 52 forks source link

[ATDD] use struct with `alias this` instead of `Typedef` for user defined types #355

Closed elrandar closed 11 months ago

elrandar commented 12 months ago

This PR fixes various issues with the interoperability of user defined types, used in or outside of records. It makes use or the alias this Dlang feature, instead of the Typedef that was used previously. This allows for alias type to be defined as structs and used in the same way as the type they wrap, while still maintaining different behaviours for differently wrapped types.