Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): correct return type of Fn.getAtt #3559

Merged
merged 3 commits into from
Aug 6, 2019

Conversation

RomainMuller
Copy link
Contributor

This was still typed as Token but that has become a static helper host
a couple of versions ago. The actual return time is IResolvable. It
compiled in TypeScript since Token declares no instance members,
thus allowing any object to structurally cast to it -- however this
would not work in strong statically typed languages such as Java, where
this incurs an invalid cast.


Please read the contribution guidelines and follow the pull-request checklist.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

This was still typed as `Token` but that has become a static helper host
a couple of versions ago. The actual return time is `IResolvable`. It
compiled in **TypeScript** since `Token` declares no instance members,
thus allowing any object to structurally cast to it -- however this
would not work in strong statically typed languages such as Java, where
this incurs an invalid cast.
skinny85
skinny85 previously approved these changes Aug 6, 2019
@mergify mergify bot merged commit 02ef2dc into master Aug 6, 2019
@RomainMuller RomainMuller deleted the rmuller/fix-fn-getatt-type branch August 6, 2019 23:52
@eladb
Copy link
Contributor

eladb commented Aug 7, 2019

Nice one

@NGL321 NGL321 added the contribution/core This is a PR that came from AWS. label Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants