type messageBody = {
message: string,
input: string
};
type response = {
statusCode: int,
body: Js.Json.t
};
let hello = (event, context, callback) => {
let body : messageBody = {
message: "Hello World!",
input: event,
};
let response : response = {
statusCode: 200,
body: Js.Json.stringify(body)
};
callback(null, response);
}
Last active
January 17, 2018 00:54
-
-
Save dardub/202f013835a8d66cee904650e2b8754f to your computer and use it in GitHub Desktop.
Hello World
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get the following compiler error (Line 19):