Typescript types for fetch in module syntax
I'm migrating a worker to module syntax in a typescript project. What are the types of
request
and context
? I know env
is my own interface.
`2 Replies
This request right? https://developer.mozilla.org/en-US/docs/Web/API/Request
Request - Web APIs | MDN
The Request interface of the Fetch API represents a resource request.
I can't find ExecutionContext
That's what I thought, maybe it's a misconfiguration. I have
yeah, this project is a few years old, so this might be a little funky
I think this all came from the old worker starer template , possibly plus jest
good idea - I can copy stuff over from that
I actually have a recently created project I can look at. And yeah I'm noticing the tsconfig is very different
I'll start with that. Thanks!