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

handler return type checking #1228 #1241

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

jerizm
Copy link

@jerizm jerizm commented Sep 18, 2024

I think what was happening was because , TInputHandlerResultProps = TResult was passed it allowed the return type to be inferred or overridden by the handler.

After removing , TInputHandlerResultProps = TResult from the handler the return type will be enforced by what is passed in to Middy<Event, Result...

This does mean, however, you cannot override the handler return type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants