TypeScript on Email Workers
https://github.com/cloudflare/workers-sdk/tree/main/templates/worker-typescript
I am using that template as starting point. I want to create email worker. While trying to use TypeScript I had some problems.
I can properly assing types of "message" argument in default function of worker.
In web editor, I can see autocomplete has message.headers and other stuff. But in local development I only have .from and .to methods. What should I do?
1 Reply