UNPKG

@magnetarjs/core

Version:
19 lines (18 loc) 505 B
import type { DocMetadata } from '@magnetarjs/types'; /** * await if there's a WriteLock for the document, and return the latest version of the doc after this */ export declare function getDocAfterWritelock(params: { lastIncomingDocs: Map<string, { payload: { [key: string]: unknown; } | undefined; meta: DocMetadata; }>; docIdentifier: string; }): undefined | { payload: { [key: string]: unknown; } | undefined; meta: DocMetadata; };