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): fix some return types #3192

Merged
merged 5 commits into from
Jul 4, 2019
Merged

Conversation

RomainMuller
Copy link
Contributor

@RomainMuller RomainMuller commented Jul 3, 2019

  1. @aws-cdk/core.Stack.availabilityZones:
    The type was incorrectly inferred to any by the typescript compiler,
    however the actual type string[].
  2. @aws-cdk/aws-codebuild.Project.addSecondaryArtifact(IArtifacts):
    The type was declared as any, however the function never returns
    anything - the effective type is void.
  3. Renamed @aws-cdk/aws-ec2.toRuleJSON to toRuleJson for consistency.

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

The type was incorrectly inferred to `any` by the typescript compiler,
however the actual type `string[]`. This fixes that.
@RomainMuller RomainMuller requested a review from a team as a code owner July 3, 2019 17:59
@ghost ghost requested a review from eladb July 3, 2019 18:00
@RomainMuller RomainMuller requested a review from skinny85 as a code owner July 3, 2019 20:04
@RomainMuller RomainMuller changed the title fix(core): fix return type of Stack.availabilityZones fix(core): fix some return types Jul 3, 2019
Copy link
Contributor

@eladb eladb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@RomainMuller RomainMuller merged commit b5997c3 into master Jul 4, 2019
@RomainMuller RomainMuller deleted the rmuller/fix-return-type branch July 4, 2019 06:57
@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.

4 participants