Skip to content

Commit cb7fa14

Browse files
authored
fix: update middy types to be aligned with 7.1.2 update (#5100)
Signed-off-by: will Farrell <[email protected]>
1 parent 65c054c commit cb7fa14

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/commons/src/types/middy.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ type Request<
2121
> = {
2222
event: TEvent;
2323
context: TContext;
24-
response: TResult | null;
25-
error: TErr | null;
24+
response: TResult | null | undefined;
25+
error: TErr | null | undefined;
2626
internal: {
2727
[key: string]: unknown;
2828
};
@@ -61,7 +61,7 @@ type MiddyLikeRequest = {
6161
event: unknown;
6262
context: Context;
6363
response: unknown;
64-
error: Error | null;
64+
error: Error | null | undefined;
6565
internal: {
6666
[key: string]: unknown;
6767
};

0 commit comments

Comments
 (0)