From d024032b8200d8c8fba41f557752b5b5a1ba9cf6 Mon Sep 17 00:00:00 2001 From: dkundel Date: Fri, 30 Aug 2019 15:56:42 -0700 Subject: [PATCH] fix(types): add other values to callback signature --- packages/serverless-runtime-types/types.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/serverless-runtime-types/types.d.ts b/packages/serverless-runtime-types/types.d.ts index dc7d920a..cf255ddd 100644 --- a/packages/serverless-runtime-types/types.d.ts +++ b/packages/serverless-runtime-types/types.d.ts @@ -49,8 +49,8 @@ export type Context = { } & T; export type ServerlessCallback = ( - error: null | Error, - payload?: object + error: null | Error | string | object, + payload?: object | string | number | boolean ) => void; export type ServerlessFunctionSignature<