0.2.7 • Published 4 years ago

@hanishi/reason-lambda v0.2.7

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Reason-Lambda

reason-lambda is a set of bindings for AWS Lambda handlers. It makes use of Bucklescript 7 representation of records as JS objects. It includes bindings for both v1 and v2 of lambda payloads.

Install

yarn add @tsnobip/reason-lambda

And add @tsnobip/reason-lambda to the bs-dependencies of bsconfig.json.

Usage

open ReasonLambda.V2;
type greetings = {greetings: string};
let handler: handler =
  (_event, _context) =>
    {greetings: "Hello world!"}->Response.fromBody->Js.Promise.resolve;

You can see a working example with the Serverless framework here.

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago