Skip to content

changeDocumentAsync

changeDocumentAsync<DocType, ChangesType, ChangeFnType, PrivateKey, PublicKey, DocumentKey, RootStateType>(documentId, changeFn, message?, selectPeerborneState?): ThunkAction<Promise<DocType>, RootStateType, unknown, ChangeDocumentAction<DocType>>

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

DocType

ChangesType

ChangeFnType

PrivateKey

PublicKey

DocumentKey

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

string

ChangeFnType

string

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

ThunkAction<Promise<DocType>, RootStateType, unknown, ChangeDocumentAction<DocType>>