As far as I’m aware, the extra parentheses are the way to go. See also Return type assertions with type parameters - #2 by rdeits
2 Likes
As far as I’m aware, the extra parentheses are the way to go. See also Return type assertions with type parameters - #2 by rdeits