Correct TypeScript from WorkerEntrypoint Binding
If I have this service below
When I consume this into another service provider it has in its toml
When I run
wrangler types
it generaties this type decleration file
However when I try to use this service it only shows two methods which are the reserved types connect
and fetch
1 Reply
There's a separate type for RPC services,
Service<Users>
in this case, if you import type Users from './other.ts'
The way I usually have them would be USERS: Service<import('other-service').default>
as inline type imports