Skip to content

Commit

Permalink
feat: Add name property to MiddlewareObj typings
Browse files Browse the repository at this point in the history
  • Loading branch information
daedal-knickerbockers committed Nov 29, 2023
1 parent 235c226 commit 1831b8e
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 1831b8e

Please sign in to comment.