Skip to content

chore(assertions): snippets avoid using intermediate variable assignment#17714

Merged
mergify[bot] merged 2 commits intomasterfrom
nija-at/readme-inline
Nov 25, 2021
Merged

chore(assertions): snippets avoid using intermediate variable assignment#17714
mergify[bot] merged 2 commits intomasterfrom
nija-at/readme-inline

Conversation

@nija-at
Copy link
Copy Markdown
Contributor

@nija-at nija-at commented Nov 25, 2021

Previously, the rosetta translations could not determine the type of
objects being passed into methods when they are untyped. Some were being
interpreted as 'props' type while they should just be regarding as
Record or any.

To compensate for this, the README in this module assigned them to
variables, so the translator did a better job at knowing this.

This has now been fixed in rosetta. Move back to using this inline,
since the usage is just nicer.


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

Previously, the rosetta translations could not determine the type of
objects being passed into methods when they are untyped. Some were being
interpreted as 'props' type while they should just be regarding as
`Record` or `any`.

To compensate for this, the README in this module assigned them to
variables, so the translator did a better job at knowing this.

This has now been fixed in rosetta. Move back to using this inline,
since the usage is just nicer.
@nija-at nija-at requested review from a team and rix0rrr November 25, 2021 15:51
@nija-at nija-at self-assigned this Nov 25, 2021
@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Nov 25, 2021

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Nov 25, 2021
@nija-at nija-at changed the title chore(assertions): snippets to avoid using unneeded variables chore(assertions): snippets avoid using unneeded variables Nov 25, 2021
@github-actions github-actions bot added the @aws-cdk/assertions Related to the @aws-cdk/assertv2 package label Nov 25, 2021
@nija-at nija-at changed the title chore(assertions): snippets avoid using unneeded variables chore(assertions): snippets avoid using intermediate variables Nov 25, 2021
@nija-at nija-at changed the title chore(assertions): snippets avoid using intermediate variables chore(assertions): snippets avoid using intermediate variable assignment Nov 25, 2021
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Nov 25, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 1c5050f
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit 9d436a0 into master Nov 25, 2021
@mergify mergify bot deleted the nija-at/readme-inline branch November 25, 2021 17:25
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Nov 25, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

beezly pushed a commit to beezly/aws-cdk that referenced this pull request Nov 29, 2021
…ent (aws#17714)

Previously, the rosetta translations could not determine the type of
objects being passed into methods when they are untyped. Some were being
interpreted as 'props' type while they should just be regarding as
`Record` or `any`.

To compensate for this, the README in this module assigned them to
variables, so the translator did a better job at knowing this.

This has now been fixed in rosetta. Move back to using this inline,
since the usage is just nicer.


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
…ent (aws#17714)

Previously, the rosetta translations could not determine the type of
objects being passed into methods when they are untyped. Some were being
interpreted as 'props' type while they should just be regarding as
`Record` or `any`.

To compensate for this, the README in this module assigned them to
variables, so the translator did a better job at knowing this.

This has now been fixed in rosetta. Move back to using this inline,
since the usage is just nicer.


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

@aws-cdk/assertions Related to the @aws-cdk/assertv2 package contribution/core This is a PR that came from AWS.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants