UNPKG

@magnetarjs/core

Version:
10 lines (9 loc) 539 B
import type { WriteLock } from '@magnetarjs/types'; /** * Returns a tuple with `[CollectionPath, DocId]` if the `DocId` is `undefined` that means that the `modulePath` passed is a collection! */ export declare function getCollectionPathDocIdEntry(modulePath: string): [CollectionPath: string, DocId: string | undefined]; /** * Gets all WriteLock objects of a certain `collectionPath` from the `WriteLockMap` */ export declare function getCollectionWriteLocks(collectionPath: string, writeLockMap: Map<string, WriteLock>): WriteLock[];