© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
What's the appropriate typescript type (within Env) for a binding to another worker? - Cloudflare Developers
CD
Cloudflare Developers
•
3y ago
•
3 replies
peachneo
What's the appropriate typescript type (within Env) for a binding to another worker?
For instance
, for a durable object it would be
:
interface Env {
MY_DO: DurableObjectNamespace
MY_WORKER: ???
}
interface Env {
MY_DO: DurableObjectNamespace
MY_WORKER: ???
}
Guessing it could just be a fetch handler
, but would be nice to know what TS type is expected specifically
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
86,942
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Correct TypeScript from WorkerEntrypoint Binding
CD
Cloudflare Developers / workers-and-pages-help
14mo ago
I am unable to bind a worker to another worker in local development. env.BINDING is always undefined
CD
Cloudflare Developers / workers-and-pages-help
3y ago
Worker service binding RPC TypeScript types
CD
Cloudflare Developers / workers-and-pages-help
9mo ago