Skip to content

Commit

Permalink
Merge pull request #1146 from daedal-knickerbockers/main
Browse files Browse the repository at this point in the history
feat: Add name property to MiddlewareObj typings
  • Loading branch information
willfarrell committed Nov 29, 2023
2 parents 235c226 + 1831b8e commit 0bc7e67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export interface MiddlewareObj<
before?: MiddlewareFn<TEvent, TResult, TErr, TContext, TInternal>
after?: MiddlewareFn<TEvent, TResult, TErr, TContext, TInternal>
onError?: MiddlewareFn<TEvent, TResult, TErr, TContext, TInternal>
name?: string
}

// The AWS provided Handler type uses void | Promise<TResult> so we have no choice but to follow and suppress the linter warning
Expand Down

0 comments on commit 0bc7e67

Please sign in to comment.