Skip to content

Support latest handler arguments, callback #1

@samdj

Description

@samdj

Currently I have to set the callback as so:

export function handler(event, context, done) {
    done = done || context.done

    return done(null, {
        message: 'Go Serverless! Your Lambda function executed successfully!'
    })
}

Apparently the new lambda API encourages use of the 3rd optional callback.

May be worthwhile for normalizing: https://github.com/SC5/lambda-wrapper

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions