I am unable to find this code &Routes.account_update_email_url(conn, :edit, &1) in my project, hence not able to figure out how to represent it in the form of typespec. Any inputs how to write typespec for &Routes.account_update_email_url(conn, :edit, &1) ??
A shape like &...&1... with no &2 is an anonymous function of arity 1. You could write the typespec as: (any -> binary) or even narrow that initial any depending on what type your record IDs are (string / integer / UUID etc).
The reason for not finding this code is that the function is automatically generated by the routes helper from your router.ex configuration. [guide][module]
Helpers are automatically generated based on the controller name. For example, the route: