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
It looks like the code added in #272 isn’t functioning in all cases. In particular, the Resource class in API Gateway has a constructor that is defined like:
Which does not work, because there are two parameters named parent (which was the issue that #272 was looking to solve in the first place).
I’m guessing that because the original PR was touching only code inside of a _visitMethod method, that there is somewhere else this check needs to be added to handle initializer methods as well as regular methods— that’s just a guess though.
The text was updated successfully, but these errors were encountered:
It looks like the code added in #272 isn’t functioning in all cases. In particular, the Resource class in API Gateway has a constructor that is defined like:
The ResourceProps interface is defined as:
Which means that when lifting the
ResourceProps
into keyword arguments, we’re attempting to generate a method signature like:Which does not work, because there are two parameters named parent (which was the issue that #272 was looking to solve in the first place).
I’m guessing that because the original PR was touching only code inside of a
_visitMethod
method, that there is somewhere else this check needs to be added to handle initializer methods as well as regular methods— that’s just a guess though.The text was updated successfully, but these errors were encountered: