`wrangler types` doesn't generate generic `DurableObjectNamespace`
Running
wrangler types on my worker project outputs this:
…but I was hoping it’d generate the proper generic:
Here is how my setup looks like:
- wrangler.jsonc
- src/index.ts
Everything compiles and runs fine, but the generated types never includes the <User>. Did I miss a flag or setting?
This is probably related to https://discord.com/channels/595317990191398933/1361839487872929894/13618394878729298943 Replies
I'd probably recommend filing a bug/fr at https://github.com/cloudflare/workers-sdk/issues for this. I don't think you're missing anything - I think it's just not yet supported. I'd recommend manually defining your types for now.
Oh, I see. I'll do that, thanks!
GitHub
Stricter generated types for Workflows in worker-configuration.d.ts...
Describe the solution When you have durable objects defined and run wrangler types then the following strict types will be generated in worker-configuration.d.ts declare namespace Cloudflare { inte...