Skip to content

Commit 8542187

Browse files
authored
Pass TContext to the onError handler definition
It seems that it was overlooked because `TContext` is passed to `MiddyfiedHandler.onError`.
1 parent cd85a06 commit 8542187

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ declare type MiddlewareFn<TEvent = any, TResult = any, TErr = Error, TContext ex
3333
export interface MiddlewareObj<TEvent = any, TResult = any, TErr = Error, TContext extends LambdaContext = LambdaContext> {
3434
before?: MiddlewareFn<TEvent, TResult, TErr, TContext>
3535
after?: MiddlewareFn<TEvent, TResult, TErr, TContext>
36-
onError?: MiddlewareFn<TEvent, TResult, TErr>
36+
onError?: MiddlewareFn<TEvent, TResult, TErr, TContext>
3737
}
3838

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

0 commit comments

Comments
 (0)