-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: bring typescript
(WIP)
#63
Conversation
// src/index.ts | ||
exports.handler = async (event, context) => { | ||
console.log("Welcome to TypeScript", event); | ||
return { | ||
status: 200, | ||
body: JSON.stringify({ message: "Hello, TypeScript" }), | ||
}; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add types to this example?
As a user I'd want some kind of information or disclaimer about what the signature of the function should be and whether it's enforced by the Wing library or not, since it might mean the same function I write in TypeScript for a typescript.FunctionHandler
can't be reused in a typescript.QueueHandler
automatically, or something like that.
@@ -0,0 +1 @@ | |||
export type Handler = (context: any, event: any) => Promise<any>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be generated with types based on lifting
Hi, This PR has not seen activity in 20 days. Therefore, we are marking the PR as stale for now. It will be closed after 7 days. |
WIP