Skip to content

openDocumentAsync

openDocumentAsync<DocType, ChangesType, ChangeFnType, PrivateKey, PublicKey, DocumentKey, RootStateType>(documentId, selectPeerborneState?, initialization?): ThunkAction<Promise<PeerborneDocument<DocType, ChangesType, ChangeFnType, PrivateKey, PublicKey, DocumentKey> | null>, RootStateType, unknown, CloseDocumentAction | OpenDocumentAction<DocType, ChangesType, ChangeFnType, PrivateKey, PublicKey, DocumentKey> | SyncDocumentAction<DocType>>

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

DocType

ChangesType

ChangeFnType

PrivateKey

PublicKey

DocumentKey

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

string

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

"open" | "create"

ThunkAction<Promise<PeerborneDocument<DocType, ChangesType, ChangeFnType, PrivateKey, PublicKey, DocumentKey> | null>, RootStateType, unknown, CloseDocumentAction | OpenDocumentAction<DocType, ChangesType, ChangeFnType, PrivateKey, PublicKey, DocumentKey> | SyncDocumentAction<DocType>>