Skip to content

chore(spec2cdk): add explicit return type to loadPatchedSpec#36031

Merged
mergify[bot] merged 1 commit intomainfrom
mrgrain/fix/spec2cdk/add-return-type
Nov 12, 2025
Merged

chore(spec2cdk): add explicit return type to loadPatchedSpec#36031
mergify[bot] merged 1 commit intomainfrom
mrgrain/fix/spec2cdk/add-return-type

Conversation

@mrgrain
Copy link
Copy Markdown
Contributor

@mrgrain mrgrain commented Nov 12, 2025

Issue # (if applicable)

N/A

Reason for this change

The loadPatchedSpec function was missing an explicit return type annotation, which caused the integration test PRs in https://github.com/cdklabs/awscdk-service-spec to fail (example).

This is a fairly obscure scenario and doesn't happen that often. But I don't really have a good way to prevent this kind of issue in future. For now, let's stop the bleeding.

Description of changes

Added explicit Promise<SpecDatabase> return type annotation to the loadPatchedSpec function in tools/@aws-cdk/spec2cdk/lib/generate.ts.

Describe any new or updated permissions being added

None.

Description of how you validated changes

Type-only change, verified manually with linked awscdk-service-spec packages.

Checklist


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

@aws-cdk-automation aws-cdk-automation requested a review from a team November 12, 2025 16:59
@github-actions github-actions bot added the p2 label Nov 12, 2025
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Nov 12, 2025
Copy link
Copy Markdown
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

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

(This review is outdated)

@mrgrain mrgrain changed the title fix(spec2cdk): add explicit return type to loadPatchedSpec chore(spec2cdk): add explicit return type to loadPatchedSpec Nov 12, 2025
@aws-cdk-automation aws-cdk-automation dismissed their stale review November 12, 2025 17:04

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Nov 12, 2025

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

@mergify mergify bot merged commit 773b5c4 into main Nov 12, 2025
47 of 48 checks passed
@mergify mergify bot deleted the mrgrain/fix/spec2cdk/add-return-type branch November 12, 2025 17:41
@github-actions
Copy link
Copy Markdown
Contributor

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

contribution/core This is a PR that came from AWS. p2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants