4 Replies
How does CloudFlare know that the DurableObject is of type itty-durable?
https://github.com/shrinerp/CF-Proxy/blob/main/src/paths/RoutesDO/UserCreate.ts
Like I get it here in the routing class:
https://github.com/shrinerp/CF-Proxy/blob/main/src/index.mts#L19
But in the pathing class, it wouldn't know what it is.
GitHub
CF-Proxy/src/paths/RoutesDO/UserCreate.ts at main · shrinerp/CF-Proxy
Contribute to shrinerp/CF-Proxy development by creating an account on GitHub.
GitHub
CF-Proxy/src/index.mts at main · shrinerp/CF-Proxy
Contribute to shrinerp/CF-Proxy development by creating an account on GitHub.
not sure, I don't use types or itty-router
Got it. I think that those are the conditions described in this article and that outcome.
How do I use WithDurables in this case?
This is what I did:
https://github.com/shrinerp/CF-Proxy/blob/main/src/paths/RoutesDO/UserCreate.ts#L52
GitHub
CF-Proxy/src/paths/RoutesDO/UserCreate.ts at main · shrinerp/CF-Proxy
Contribute to shrinerp/CF-Proxy development by creating an account on GitHub.