Skip to content

closeDocumentAsync

closeDocumentAsync<DocType, ChangesType, ChangeFnType, PrivateKey, PublicKey, DocumentKey, RootStateType>(documentId, selectPeerborneState?): ThunkAction<Promise<void>, RootStateType, unknown, CloseDocumentAction | SyncDocumentAction<DocType>>

Defined in: packages/redux/src/actions.ts:332

DocType

ChangesType

ChangeFnType

PrivateKey

PublicKey

DocumentKey

RootStateType = PeerborneState<DocType, ChangesType, ChangeFnType, PrivateKey, PublicKey, DocumentKey>

string

(rootState) => PeerborneState<DocType, ChangesType, ChangeFnType, PrivateKey, PublicKey, DocumentKey>

ThunkAction<Promise<void>, RootStateType, unknown, CloseDocumentAction | SyncDocumentAction<DocType>>