Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
20 lines
1.0 KiB
Plaintext
20 lines
1.0 KiB
Plaintext
import type { ClientUser } from 'payload';
|
|
export interface HandleTakeOverParams {
|
|
clearRouteCache?: () => void;
|
|
collectionSlug?: string;
|
|
documentLockStateRef: React.RefObject<{
|
|
hasShownLockedModal: boolean;
|
|
isLocked: boolean;
|
|
user: ClientUser | number | string;
|
|
}>;
|
|
globalSlug?: string;
|
|
id: number | string;
|
|
isLockingEnabled: boolean;
|
|
isWithinDoc: boolean;
|
|
setCurrentEditor: (value: React.SetStateAction<ClientUser | number | string>) => void;
|
|
setIsReadOnlyForIncomingUser?: (value: React.SetStateAction<boolean>) => void;
|
|
updateDocumentEditor: (docID: number | string, slug: string, user: ClientUser | number | string) => Promise<void>;
|
|
user: ClientUser | number | string;
|
|
}
|
|
export declare const handleTakeOver: ({ id, clearRouteCache, collectionSlug, documentLockStateRef, globalSlug, isLockingEnabled, isWithinDoc, setCurrentEditor, setIsReadOnlyForIncomingUser, updateDocumentEditor, user, }: HandleTakeOverParams) => Promise<void>;
|
|
//# sourceMappingURL=handleTakeOver.d.ts.map |