This message was deleted.
# typescript
s
This message was deleted.
w
Yes - this does appear to be a case of TypeScript contextual typing not flowing as well as you might hope. You can fix by inserting a cast - for instance just
as aws.iam.PolicyStatement[]
on the second to last line.
w
ok i'll do that — is there an opportunity for the interface to be improved to accommodate this? or is it purely a TS quirk?
w
I believe this is purely a TS quirk.