Skip to content

Commit d024032

Browse files
committed
fix(types): add other values to callback signature
1 parent 874e82e commit d024032

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: packages/serverless-runtime-types/types.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ export type Context<T = {}> = {
4949
} & T;
5050

5151
export type ServerlessCallback = (
52-
error: null | Error,
53-
payload?: object
52+
error: null | Error | string | object,
53+
payload?: object | string | number | boolean
5454
) => void;
5555

5656
export type ServerlessFunctionSignature<

0 commit comments

Comments
 (0)