Skip to content

Commit

Permalink
fix(types): add other values to callback signature
Browse files Browse the repository at this point in the history
  • Loading branch information
dkundel committed Aug 30, 2019
1 parent 874e82e commit d024032
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/serverless-runtime-types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export type Context<T = {}> = {
} & T;

export type ServerlessCallback = (
error: null | Error,
payload?: object
error: null | Error | string | object,
payload?: object | string | number | boolean
) => void;

export type ServerlessFunctionSignature<
Expand Down

0 comments on commit d024032

Please sign in to comment.