-
Notifications
You must be signed in to change notification settings - Fork 323
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
RPC Response
type not compatible with Worker
#3042
Comments
I have the same issue. It is and issue with "@cloudflare/workers-types" after "4.20241011.0".
Reverting back to 11 fixes an issue. |
@kentonv ... pretty sure this is just a ts type issue but just in case there's something deeper happening here... |
PS, I'm using RPC workers, aswel with hono router, very happy with architecture, Thanks everyone who maintains workers and community! |
This looks like some sort of bug with the magic TypeScript that generates RPC stub types. @penalosa any idea what the issue is here? |
Given the following worker code:
And the following DO:
I get the following TypeScript error:
The code actually runs and executes fine as I'd expect. Is this expected to work and there's a TS error, or shouldn't this work and I've not hit some sort of edge case with RPC?
The main concern here is ensuring there's only a single billable request.
The text was updated successfully, but these errors were encountered: