Heya, i may be doing something wrong here, but I have this durable object that extends y durable objects:
export default class SessionObject extends YDurableObjects<{ Bindings: Env }> {
}
But as soon as I export this from index.ts in order for it to be registered with cloudflare "export { default as SessionObject } from './dos/session';". it forces the Env to now not to find the namespaces Env...
It's a hard problem to explain, but in my worker-configuration.ts, after importing the y durable objects, my Env points to:
declare namespace Cloudflare {
interface Env {
SESSIONS: DurableObjectNamespace<import("./src/index").SessionObject>;
} <<<< not this one
}
interface Env extends Cloudflare.Env {} <<<< this one (which on click through takes me to node modules...)
And thus the compiler doesn't think there are any Env properties, it basically ignores the Cloudlfare Envs that are set in my workerconfiguration.d.ts...
Heya, i may be doing something wrong here, but I have this durable object that extends y durable objects:
But as soon as I export this from index.ts in order for it to be registered with cloudflare "export { default as SessionObject } from './dos/session';". it forces the Env to now not to find the namespaces Env...
It's a hard problem to explain, but in my worker-configuration.ts, after importing the y durable objects, my Env points to:
And thus the compiler doesn't think there are any Env properties, it basically ignores the Cloudlfare Envs that are set in my workerconfiguration.d.ts...