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

Export the Request interface #935

Merged
merged 1 commit into from
Nov 14, 2022

Conversation

saintybalboa
Copy link
Contributor

@saintybalboa saintybalboa commented Nov 14, 2022

Issue: #933

Changes

Exports the Request interface so that consumers can assign the type to the argument in the middleware functions.

const middlewareObj = {
    before: (request: Request) => {
      ...
    }
}

@saintybalboa saintybalboa changed the title Export the Request interface to enable the typing of arguments in the… Export the Request interface Nov 14, 2022
@willfarrell willfarrell merged commit 1bf33ec into middyjs:feature/4.0 Nov 14, 2022
@willfarrell
Copy link
Member

Thanks for contribution

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.

2 participants