Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mrazauskas
Copy link
Contributor

@mrazauskas mrazauskas commented Aug 24, 2025

What does this implement/fix? Explain your changes.

This PR updates @middy/cloudformation-router type test. It has a commented out line which imports CloudFormationCustomResourceHandler type.

I searched GitHub for usage examples and updated the test to use the CloudFormationCustomResourceHandler type instead of any.

Currently createLambdaHandler in the following line has any type. After this change it gets typed as CloudFormationCustomResourceHandler. The type test ensures it is assignable to the type of handler.

handler: createLambdaHandler,

Todo List:

  • All commits are cryptographically signed
  • Feature/Fix fully implemented
  • Updated relevant types
  • Added tests (if applicable)
    • Unit tests
    • Fuzz tests
    • Type tests
    • Benchmark tests
  • Updated relevant documentation
  • Updated relevant examples

@mrazauskas mrazauskas requested a review from a team as a code owner August 24, 2025 08:34
@mrazauskas mrazauskas force-pushed the update-cloudformation-router-type-test branch from 510cdee to 677064f Compare August 24, 2025 08:34
@willfarrell willfarrell merged commit c1791d2 into middyjs:main Aug 24, 2025
13 checks passed
@willfarrell
Copy link
Member

Thanks for the PR!

@mrazauskas mrazauskas deleted the update-cloudformation-router-type-test branch August 24, 2025 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants