Skip to content

Commit a3d34a0

Browse files
committed
FIXED: Compilation errors due to changed type descriptions.
1 parent 82ddfba commit a3d34a0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/health/health.controller.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ describe('HealthController', () => {
6868
};
6969
}
7070

71-
handler(event, <ApiContext> {}, (error?: Error | null, result?: ApiResponse): void => {
71+
handler(event, <ApiContext> {}, (error?: Error | null | string, result?: ApiResponse): void => {
7272
if (typeof result === 'undefined') {
7373
reject('No result was returned by the handler!');
7474
return;

test/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const callSuccess: SuccessCaller = <T>(handler: ApiHandler, pathParameter
1313
event.pathParameters = pathParameters;
1414
}
1515

16-
handler(event, <ApiContext> {}, (error?: Error | null, result?: ApiResponse): void => {
16+
handler(event, <ApiContext> {}, (error?: Error | null | string, result?: ApiResponse): void => {
1717
if (typeof result === 'undefined') {
1818
reject('No result was returned by the handler!');
1919
return;
@@ -35,7 +35,7 @@ export const callFailure: FailureCaller = (handler: ApiHandler, pathParameters?:
3535
event.pathParameters = pathParameters;
3636
}
3737

38-
handler(event, <ApiContext> {}, (error?: Error | null, result?: ApiResponse): void => {
38+
handler(event, <ApiContext> {}, (error?: Error | null | string, result?: ApiResponse): void => {
3939
if (typeof result === 'undefined') {
4040
reject('No result was returned by the handler!');
4141
return;

0 commit comments

Comments
 (0)