💡 Support Service Workers in wrangler types
#1378
Labels
Priority: Normal
Minor issue impacting one or more users
Type: Feature Request
A big idea that would be split into smaller pieces
Describe the feature you'd like
When using
wrangler types --x-include-runtime
support generating types for service workers. Today, it only generates aFetcher
, which does not include the typing needed to pull in functions.Describe alternatives you've considered
The only option I can envision is hard-coding
Service<Engine>
into the output. If there is a better alternative, I'm all ears.Additional context
wrangler.toml
You will see the following after running
wrangler types --x-include-runtime
.worker-configuration.d.ts
Which means that any function that is referenced is not going to work with typed support
The text was updated successfully, but these errors were encountered: