@magnetarjs/core
Version:
Magnetar core library.
19 lines (18 loc) • 505 B
TypeScript
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;
};