Conversation
|
✅ Deploy Preview for solid-start-landing-page ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
commit: |
| } | ||
|
|
||
| export type APIHandler = (event: APIEvent) => Promise<any>; | ||
| export type APIHandler = (event: APIEvent) => any; |
There was a problem hiding this comment.
what was the reason for this change?
There was a problem hiding this comment.
what was the reason for this change?
obviously so you can return non-promise like export const GET: APIHandler = () => "hi" not be forced into async like export const GET: APIHandler = async () => "hi"
PR Checklist
Please check if your PR fulfills the following requirements:
What is the current behavior?
What is the new behavior?
Other information