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
This would be good to have! Parlour's not really designed to be smart enough to find and resolve struct-like classes itself, but there could be an "acts like struct" configuration option which extends that ['T::Struct', '::T::Struct'] array you've linked.
I'll have a think of the best way to implement this and put a PR together in the coming days :)
We have a class
that we use in place of T::Structs to add custom deserialization among other things. We'd like to use parlour to generate rbi files but it only handles props on 'T::Struct' due to https://github.com/AaronC81/parlour/blob/master/lib/parlour/type_parser.rb#L180
We've written a plugin to handle props on these classes but it would be great if parlour supported anything that has T::Prop included.
The text was updated successfully, but these errors were encountered: