Skip to content

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