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
Unfortunately macros cannot know what a typealias expands to, so that case could not be handled without passing the macro extra information (as in making the macro take an optional argument where the dev can specify the underlying type of the completion handler).
However, optional completion handlers (without typealiases) could definitely be supported! (because all of the required type information is present in the syntax). The example macros aren’t very comprehensive because they’re only intended to demonstrate usage of the toolkit, but I’d happily accept a PR.
I'm using AddAsyncMacro from the example, and it seems to only get the direct function type, if I use Optional or Typealias I get errors
The text was updated successfully, but these errors were encountered: