Skip to content

asStrongStore

asStrongStore(store): Effect<StrongMessageSessionStore, SessionStoreInconsistent>

Defined in: packages/core/src/session/schema.ts:352

Narrows a store to one that supports the lease/CAS protocol.

The lease path is typed against StrongMessageSessionStore, so a direct caller with an eventual store gets a type error. This runtime check covers stores read from the context, where the service type is wide.

MessageSessionStoreShape

Effect<StrongMessageSessionStore, SessionStoreInconsistent>