thisisntme.
01/03/2024, 7:02 PMts
state: DurableObjectState;
webSockets: Set<WebSocket>;
storage: DurableObjectStorage;
constructor(state: DurableObjectState, env: Env) {
this.state = state;
this.storage = state.storage;
this.webSockets = new Set();
}
I guess I'd want to define the type of stuff accessed through this.storage.get()/set()kian
01/03/2024, 7:06 PMthis.storage.get<T>(key, opts)
, etc