Another question, what's the go to way to get a type safe interface between my DO and my worker? Som
Another question, what's the go to way to get a type safe interface between my DO and my worker? Something like trpc?
npm i trpc-durable-objects. There are no other projects in the npm registry using trpc-durable-objects.
COUNTER.get('myCounter').currentValue() be typed as a number if the DO method returns a number?as ReturnType<typeof Counter.currentValue>Pick magic so it only exposes router methodsisValidMethod except for fetch