You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deserializeAttachment() exists on WebSocket type returned by DurableState.getWebSockets()
Actual
DurableState.getWebSockets() returns type globalThis.WebSocket (standard type as defined by MDN Reference):
Suggestion
The types file does in fact include a type for the Cloudflare implementation of WebSocket which includes this signature, but this is not the Type which is returned.
Anecdote
Could this be due to the WebSocket type definition coming later in the types file than the DurableObjectState definition?