Closed ellisio closed 1 year ago
Thanks for the report, @ellisio! Sorry you've run into this.
A workaround for the moment is to revert the v2 functionality of treating serve()
as any
:
export const { GET, POST, PUT } = serve(...) as any;
There's a couple of fixes needed here - one is #339 and the other just needs to be an app router integration test! Let me work on that now. 🙂
@jpwilliams Was just in the middle of typing out the as any
fix myself, thank you!
Should be fixed in 3.0.1 - thank you!
Describe the bug
When upgrading to v3.0.0, we're getting a typing error:
This is how we have our client defined:
To Reproduce Steps to reproduce the behavior:
inngest@3.0.0
in a TypeScript NextJS 13 project.functions: []
definition, same thing.Expected behavior Should not have a typing error.
Code snippets / Logs / Screenshots
System info (please complete the following information):